Module

IxQueue.IOQueues

Package
purescript-queue
Repository
athanclark/purescript-queue

#new Source

new :: forall output input. Effect (IOQueues IxQueue input output)

#callAsync Source

callAsync :: forall output input. String -> IOQueues IxQueue input output -> input -> Aff output

Invoke the queue in Aff

#callAsyncEff Source

callAsyncEff :: forall output input. String -> IOQueues IxQueue input output -> Handler output -> input -> Effect Unit

Invoke the queue in Eff

#registerSync Source

registerSync :: forall output input. String -> IOQueues IxQueue input output -> (input -> Effect output) -> Effect Unit

For binding the receiver

#registerSyncOnce Source

registerSyncOnce :: forall output input. String -> IOQueues IxQueue input output -> (input -> Effect output) -> Effect Unit

Bind a receiver only once

Re-exports from IOQueues

#IOQueues Source

newtype IOQueues q input output

Represents an asynchronously invokable function input -> Aff output

Constructors