Module

Webb.Channel

Package
purescript-webb-channel
Repository
mitchellandwebb/webb-channel

#Channel Source

newtype Channel :: forall k. k -> Typenewtype Channel a

Instances

#Chan Source

type Chan :: forall k. k -> Typetype Chan a = Channel a

#newChannel Source

newChannel :: forall m a. MonadEffect m => SendSize -> m (Channel a)

#newChan Source

newChan :: forall m a. MonadEffect m => SendSize -> m (Channel a)

#send Source

send :: forall m a. MonadAff m => Chan a -> a -> m Boolean

#trySend Source

trySend :: forall m a. MonadEffect m => Chan a -> a -> m Boolean

#receive Source

receive :: forall m a. MonadAff m => Chan a -> m (CMaybe a)

#tryReceive Source

tryReceive :: forall m a. MonadEffect m => Chan a -> m (Maybe a)

#close Source

close :: forall m a. MonadEffect m => Chan a -> m Unit

#isOpen Source

isOpen :: forall m a. MonadEffect m => Chan a -> m Boolean

#isClosed Source

isClosed :: forall m a. MonadEffect m => Chan a -> m Boolean

Re-exports from Webb.Channel.Data.CMaybe

#CMaybe Source

data CMaybe a

Constructors

Instances

Re-exports from Webb.Channel.Data.SendQueue