Skip to content

timeout

forkChild is a variant of forkIO that spawns a concurrent "IO a" computation, and returns a "Child a" handle that can be used to obtain the "a" value once the computation has terminated.

parIO is a combinator that runs two "IO a" computations concurrently and returns the "a" value of the computation that terminates first.

timeout wraps an "IO a" computation to "IO (Maybe a)" and returns "Nothing" if the computation doesn't terminate within a specified time period.

Trac metadata
Trac field Value
Version 6.6
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
Edited by simons
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information