aesiniath / unbeliever

Opinionated Haskell Interoperability
https://hackage.haskell.org/package/unbeliever
MIT License
33 stars 11 forks source link

Add timeout helper function #191

Closed istathar closed 1 year ago

istathar commented 1 year ago

Add new little helper function timeoutThread which runs a sub program with a time limit.

I'm not entirely convinced that this is the right way to do this, given all the caveats listed in System.Timeout's timeout function, but on the other hand they rely on interrupting non-blocking I/O so presumably we would be leveraging the same thing.