getify / monio

The most powerful IO monad implementation in JS, possibly in any language!
http://monio.run
MIT License
1.05k stars 58 forks source link

Bug: IOx instances that throw exceptions are a mess #24

Open getify opened 2 years ago

getify commented 2 years ago

The error handling story around IOx is embarrassingly buggy and insufficient.

Need an onError(..) and offError(..) to register handlers to listen for exceptions in IOx instances, and need exception notifications to propagate down an IOx chain until it finds registered listener(s).