How to implement this async effect #809
Unanswered
Waelwindows
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was reading A Substructural Type and Effect
System, and in page 14. They describe how to model async/await using effects in OCaml.
I tried implementing the same in Koka
However, I couldn't model that
awaitreturnsawith effecte.Nonetheless, I tried writing their example
Now adding an effect handler
However, this gets the compiler complaining
If i change
Instead i get,
How do I resolve this?
Beta Was this translation helpful? Give feedback.
All reactions