taffybar
Safe HaskellNone
LanguageHaskell2010

System.Taffybar.Widget.Generic.ChannelWidget

Synopsis

Documentation

channelWidgetNew :: (MonadIO m, IsWidget w) => w -> TChan a -> (a -> IO ()) -> m w Source #

Given a widget, a broadcast TChan and a function that consumes the values yielded by the channel that is in IO, connect the function to the TChan on a dedicated haskell thread.