Safe Haskell | None |
---|---|
Language | Haskell2010 |
Maintianer : ongy Stability : experimental
- data SubscriptionEventFacility
- data SubscriptionEventType
- data SubscriptionMask
- subscribeEvents :: Context -> [SubscriptionMask] -> Subscription -> IO Operation
- subscribeEventsM :: [SubscriptionMask] -> (Context -> Subscription) -> Pulse Operation
Documentation
data SubscriptionEventType Source #
data SubscriptionMask Source #
:: Context | The Context to subscribe on |
-> [SubscriptionMask] | The events that should be reported |
-> Subscription | Callback function that will be called on every event received. |
-> IO Operation |
Currently the function given here is leaked! even if it's reset later on This is currently unavoidable, since we don't know when the last event occured. This should only be called once per application run, so it will be a known issue for now.
subscribeEventsM :: [SubscriptionMask] -> (Context -> Subscription) -> Pulse Operation Source #