Module

IOQueues

#IOQueues

newtype IOQueues q input output

Represents an asynchronously invokable function input -> Aff output

Constructors

#new

new :: forall input output q. Queue q => QueueScope q => Effect (IOQueues q input output)

#callAsync

callAsync :: forall input output q. Queue q => QueueScope q => IOQueues q input output -> input -> Aff output

Invoke the queue in Aff.

#callAsyncEff

callAsyncEff :: forall input output q. Queue q => QueueScope q => IOQueues q input output -> Handler output -> input -> Effect Unit

Invoke the queue in Eff

#registerSync

registerSync :: forall input output q. Queue q => IOQueues q input output -> (input -> Effect output) -> Effect Unit

For binding the receiver

#registerSyncOnce

registerSyncOnce :: forall input output q. Queue q => IOQueues q input output -> (input -> Effect output) -> Effect Unit

Bind a receiver only once

Modules