Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pausing/suspending execution #159

Open
davidsanda opened this issue Aug 18, 2019 · 1 comment
Open

pausing/suspending execution #159

davidsanda opened this issue Aug 18, 2019 · 1 comment
Labels

Comments

@davidsanda
Copy link

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.

@paulbartrum
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants