Helic.Listen
Description
Listen, Internal
data Listening Source #
Signal type that indicates that the subscriber of listen is running.
listen
Constructors
Defined in Helic.Listen
Methods
(==) :: Listening -> Listening -> Bool #
(/=) :: Listening -> Listening -> Bool #
showsPrec :: Int -> Listening -> ShowS #
show :: Listening -> String #
showList :: [Listening] -> ShowS #
listen :: Members [EventConsumer token Event, History, Sync Listening] r => Sem r () Source #
Listen for Event via Events, broadcasting them to agents.
Event
Events
withListen :: Members [EventConsumer token Event, History, Resource, Race, Async, Embed IO] r => Sem r a -> Sem r a Source #
Run an action with listen in a thread, waiting for the event subscriber to be up and running before executing the action.