pantomime-rs / pantomime

MIT License
5 stars 1 forks source link

Improve streams panic handling #26

Closed longshorej closed 5 years ago

longshorej commented 5 years ago

Currently we're using catch_unwind, which we shouldn't. Requiring the user's code to be UnwindSafe is not ergonomic.

Instead, use a Deferred that checks thread::panicking and dispatches the appropriate events.

longshorej commented 5 years ago

Superseded by #57