-
Notifications
You must be signed in to change notification settings - Fork 150
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
What's the resume function? #47
Comments
@zaoqi-unsafe The resume function is like a callback in JavaScript. Let's say you are using some Node.js APIs in JavaScript:
When the Now consider this Koka code:
The Koka compiler will translate the above code into this JavaScript:
In other words, Koka automatically added in the callbacks for you. When you write an effect handler, So if And if |
|
@zaoqi-unsafe Handlers can have extra state (in this case So in this case |
Thanks for answering @Pauan -- I'll go ahead and close the issue. |
What's the resume function?
The text was updated successfully, but these errors were encountered: