-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add async/await style syntax #92
Comments
We already allow pausing handlers internally (see implementation of "go" command for stacks on web servers). |
Idea of async/await is that you could e.g. implement a download command as We need some syntax to allow this. E.g.:
Which kicks off the asynchronous operation, then pauses the caller (i.e. saves the script's state and stops it), and when the download finishes, it calls But the syntax seems too nerdy. Is there a more natural way to express this? |
Also: What if the asynchronous operation is not as simple as this Are queue tickets a good metaphor?
|
Maybe we could use the So But then |
pause caller [until end of handler] -- until is like defer, call pause again to dequeue the defer
resume caller
The text was updated successfully, but these errors were encountered: