Skip to content

Commit 8a5e418

Browse files
committed
there was an attempt
1 parent a3e8da7 commit 8a5e418

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

js/ai/qlearn/examples/scheduleNext.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if (typeof requestAnimationFrame !== `undefined`) {
66
} else {
77
const DELAY = 0;
88
scheduleNext = (callback, delay = DELAY) => {
9+
// exceeds call stack
10+
// if (delay === 0) {
11+
// callback();
12+
// } else {
913
setTimeout(callback, delay);
14+
// }
1015
};
1116
}

0 commit comments

Comments
 (0)