jurassic icon indicating copy to clipboard operation
jurassic copied to clipboard

pausing/suspending execution

Open davidsanda opened this issue 6 years ago • 1 comments

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.

davidsanda avatar Aug 18 '19 20:08 davidsanda

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.

paulbartrum avatar Aug 20 '19 03:08 paulbartrum