Safe Haskell | None |
---|---|
Language | Haskell2010 |
Sound.Pulse.Subscribe
Description
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 #
Constructors
SubscriptionEventNew | |
SubscriptionEventChange | |
SubscriptionEventRemove | |
SubscriptionEventTypeMask |
Instances
data SubscriptionMask Source #
Constructors
Instances
Arguments
:: 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 #