[GHC] #980: forkChild, waitForChild, parIO, and timeout

GHC trac at galois.com
Thu Nov 2 12:51:04 EST 2006


#980: forkChild, waitForChild, parIO, and timeout
-------------------------------+--------------------------------------------
    Reporter:  simons          |       Owner:         
        Type:  proposal        |      Status:  new    
    Priority:  normal          |   Milestone:         
   Component:  libraries/base  |     Version:  6.6    
    Severity:  normal          |    Keywords:         
  Difficulty:  Unknown         |    Testcase:         
Architecture:  Unknown         |          Os:  Unknown
-------------------------------+--------------------------------------------
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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/980>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list