Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
:: (Text -> IO Text) | A request handler function. |
-> IO (TChan (Text, Text -> IO ()), IO ()) | Action that creates the request channel and worker action. |
Takes a request handling function, returns a channel that takes (requests,post-processing actions) along with a worker action that drains the channel and forks a thread for each request.
makeChatState :: Chat -> IO (ChatState, Stream (Of OutboundMessage) IO ()) Source