Module

Aff.Workers

Package
purescript-workers
Repository
truqu/purescript-workers

#onError Source

onError :: forall worker e' e. AbstractWorker worker => worker -> (Error -> Eff e' Unit) -> Aff (worker :: WORKER | e) Unit

Event handler for the error event.

#postMessage Source

postMessage :: forall channel msg e. Channel channel => channel -> msg -> Aff (exception :: EXCEPTION, worker :: WORKER | e) Unit

Clones message and transmits it to the Worker object.

#postMessage' Source

postMessage' :: forall channel transfer msg e. Channel channel => channel -> msg -> Array transfer -> Aff (exception :: EXCEPTION, worker :: WORKER | e) Unit

Clones message and transmits it to the port object associated with dedicatedportGlobal.transfer can be passed as a list of objects that are to be transferred rather than cloned.

Re-exports from Workers

#WorkerType Source

#WORKER Source

data WORKER :: Effect

#Options Source

type Options = { name :: String, requestCredentials :: Credentials, workerType :: WorkerType }

#Navigator Source

newtype Navigator

Constructors

Instances

#Location Source

newtype Location

Constructors

Instances