-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
I've made a producer with a delivery callback, and I can print to the console to verify that it's being called. However, if I call Control.Exception.throwTo from the delivery callback (with the main thread id), the next call to produceMessage hangs indefinitely. I can work around it by setting an MVar in the delivery callback instead, and call throwTo from the main thread when it's set, but it feels roundabout and cumbersome. (I know it's not necessary to use throwTo from the main thread, but I wanted to verify that using the exact same thread id works.) Why doesn't throwing from the delivery callback work? Should it work, or have I run into an FFI related snag?
Metadata
Metadata
Assignees
Labels
No labels