Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Makes sure that all dispatched works are done. Notify when all dispatched works are done.
Synopsis
- data ResponseController
- new :: IO ResponseController
- dispatch :: ResponseController -> IO (() -> IO ())
- setCheckpointAndWait :: ResponseController -> IO ()
Documentation
data ResponseController Source #
new :: IO ResponseController Source #
Constructs a new ResponseController
dispatch :: ResponseController -> IO (() -> IO ()) Source #
Returns a callback, invoked the callback to signal completion. This function and the returned callback are both non-blocking.
setCheckpointAndWait :: ResponseController -> IO () Source #
The blocking version of setCheckpoint