No vars found in this namespace.
The basic idea is that the first time a klipse snippet's cljs is evaluated, we kick off a go-loop whose job is to wake up every 100ms and update watchdog-tick to say: this is the last time that i woke up!
And if (guard) gets run and notices that the watchdog hasn't been able to wake up within the last max-eval-duration milliseconds, it decides that we should kill the currently evaluating function, and does that by throwing an error.
and this doesn't kill go-loops created by users' snippet code, because those go-loops won't block the watchdog from running.
The basic idea is that the first time a klipse snippet's cljs is evaluated, we kick off a go-loop whose job is to wake up every 100ms and update *watchdog-tick* to say: this is the last time that i woke up! And if (guard) gets run and notices that the watchdog hasn't been able to wake up within the last *max-eval-duration* milliseconds, it decides that we should kill the currently evaluating function, and does that by throwing an error. and this doesn't kill go-loops created by users' snippet code, because those go-loops won't block the watchdog from running.
No vars found in this namespace.
Resources for use in the Klipse REPL implementation.
Resources for use in the Klipse REPL implementation.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close