Re:Why Ruby's Timeout is dangerous (and Thread.raise is terr...
by whateveracct on Monday June 03, 2024 @11:14AM
(#40563468)
> AFAIK almost no libraries are written with the expectation that their computations might be interrupted at any time by another thread.
Haskell libraries are written this way all the time. Exception-safe libraries with async-aware handling are pretty commonplace nowadays (partially thanks to safe-exceptions and unsafeio providing a nice API to deal with them.)
Haskell libraries are written this way all the time. Exception-safe libraries with async-aware handling are pretty commonplace nowadays (partially thanks to safe-exceptions and unsafeio providing a nice API to deal with them.)