select-0.2: Give the select(2) POSIX function a simple STM interface

Safe HaskellSafe-Infered

Control.Concurrent.STM.TMVarIO

Description

Perform an IO action, and place its result in a TMVar. See also Control.Concurrent.MVarIO for an MVar version.

Synopsis

Documentation

run :: IO a -> IO (TMVar a)Source

run action returns a TMVar immediately. The result of action will be placed in said TMVar. If the TMVar is full when action completes, the return value is lost (the action does not wait for an empty TMVar).