Closed pbrisbin closed 6 years ago
Other options:
Leave everything sync and make end-users re-implement catchBugsnag
to use (e.g.) forkHandler
themselves
Not a big deal, it's like 2 lines.
Make every notification async by forking in reportError
A pretty good option, the notify functions can return a handle for those that want to await
it.
Make bsBeforeNotify
simply IO
, not MonadIO
At that point, you might as well just make it pure and re-arcitect things so any state can be passed in somehow else. Before-notify really wants to be MonadIO
so you can read Handler
state into the exception context.
Closing for now (i.e. going with 1).
I'm on the fence if I should just use
forkIO
...