How to handle exceptions raised by events?

16 views
Skip to first unread message

Jack Firth

unread,
Feb 22, 2020, 5:34:48 PM2/22/20
to Racket Users
Using wrap-evt and handle-evt, I can transform the synchronization result of an event. But events can throw exceptions when they're synchronized. Is there a way to wrap an event such that the wrapper can catch (and maybe reraise) any exceptions thrown by the wrapped event? I know I can wrap a (sync evt) call in a with-handlers block, but that just synchronizes on the event instead of wrapping it and producing a new event.
Reply all
Reply to author
Forward
0 new messages