Module
Control.XStream
- Package
- purescript-xstream
- Repository
- justinwoo/purescript-xstream
#Subscription Source
data Subscription :: Type
#EffProducer Source
type EffProducer e a = { start :: EffFn1 e (EffListener e a) Unit, stop :: EffFn1 e Unit Unit }
#defaultListener Source
defaultListener :: forall a e. Listener (console :: CONSOLE | e) a
#subscribe Source
subscribe :: forall a e. Listener e a -> Stream a -> Eff e Subscription
To cancel a subscription
use cancelSubscription
.
#cancelSubscription Source
cancelSubscription :: forall e. Subscription -> Eff e Unit
#shamefullySendNext Source
shamefullySendNext :: forall a e. a -> Stream a -> Eff e Unit
Hacky 'hidden' method for sending next
to a Stream like with Subjects.
This may only work with streams created with create'
.
#adaptListener Source
adaptListener :: forall a e. Listener e a -> EffListener e a
- Modules
- Control.
XStream