jurassic
jurassic copied to clipboard
pausing/suspending execution
It would be useful if there could be some "break" command, that makes the eval or execute command return immediately and user could resume running of the script later, kinda yield function. It would be used for implementing async wait calls.
There's already a construct in javascript for doing async function calls -- a class called Promise. I'm not sure exactly what you are trying to do, however, so I can't say that promises will solve your problem.