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.
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.