pituicat/src/Affection/MessageBus/Util.hs
2017-11-27 01:43:43 +01:00

9 lines
270 B
Haskell

module Affection.MessageBus.Util where
import Affection.MessageBus.Class
import Affection.MessageBus.Message
import Control.Concurrent.STM as STM
newBroadcastChannel :: (Message msg) => IO (Channel msg)
newBroadcastChannel = atomically $ Channel <$> newBroadcastTChan