-
Notifications
You must be signed in to change notification settings - Fork 73
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
eio_luv: Losing effect handler scope #427
Comments
It's because you can't perform an effect over a C function call. So effects performed inside libuv's |
I think an explicit API to inject handlers either on the Fiber or Switch level would be great here. |
Note that this issue is not about that problem, this is just a bug in |
This is an issue formed out of https://discuss.ocaml.org/t/how-to-compose-effect-handlers-with-eio/11279 and is reproducible with this small program.
We define a new effect,
Echo
, and provide a simple handler (this is a contrived example). We would expect that all effects in this program would be handled but actually usingEio_luv
theEcho
effect is unhandled. I think this is due to thewakeup
happening as a callback in theLuv.Async
object.The text was updated successfully, but these errors were encountered: