Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- channelWidgetNew :: (MonadIO m, IsWidget w) => w -> BroadcastChan In a -> (a -> IO ()) -> m w
Documentation
channelWidgetNew :: (MonadIO m, IsWidget w) => w -> BroadcastChan In a -> (a -> IO ()) -> m w Source #
Given a widget, a BroadcastChan
and a function that consumes the values
yielded by the channel that is in IO
, connect the function to the
BroadcastChan
on a dedicated haskell thread.