Source codeContentsIndex
Broadcaster
Synopsis
data Broadcaster x delta
newBroadcaster :: (x -> delta -> x) -> x -> IO (Broadcaster x delta)
newGeneralBroadcaster :: (x -> delta -> Maybe x) -> x -> IO (Broadcaster x delta)
updateBroadcaster :: Broadcaster x delta -> delta -> IO ()
Documentation
data Broadcaster x delta
newBroadcaster :: (x -> delta -> x) -> x -> IO (Broadcaster x delta)
Like newGeneralBroadcaster, but apply function always updates.
newGeneralBroadcaster :: (x -> delta -> Maybe x) -> x -> IO (Broadcaster x delta)
Make a new one.
updateBroadcaster :: Broadcaster x delta -> delta -> IO ()
the most general update function
Produced by Haddock version 0.3