Module

Signal.Channel

Package
purescript-signal
Repository
bodil/purescript-signal

#Channel Source

data Channel :: Type -> Type

#CHANNEL Source

data CHANNEL :: Effect

#channel Source

channel :: forall a e. a -> Eff (channel :: CHANNEL | e) (Channel a)

Creates a channel, which allows you to feed arbitrary values into a signal.

#send Source

send :: forall a e. Channel a -> a -> Eff (channel :: CHANNEL | e) Unit

Sends a value to a given channel.

#subscribe Source

subscribe :: forall a. Channel a -> Signal a

Takes a channel and returns a signal of the values sent to it.