Module
GlobalScope.Dedicated
- Package
- purescript-workers
- Repository
- truqu/purescript-workers
#postMessage Source
postMessage :: forall msg e. msg -> Eff (exception :: EXCEPTION, worker :: WORKER | e) Unit
Clones message and transmits it to the Worker object.
#postMessage' Source
postMessage' :: forall transfer msg e. msg -> Array transfer -> Eff (exception :: EXCEPTION, worker :: WORKER | e) Unit
Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal.transfer can be passed as a list of objects that are to be transferred rather than cloned.
Re-exports from GlobalScope
- Modules
- Aff.
ApplicationCache - Aff.
MessagePort - Aff.
Workers - Aff.
Workers. Dedicated - Aff.
Workers. Service - Aff.
Workers. Shared - ApplicationCache
- Cache
- Fetch
- GlobalScope
- GlobalScope.
Dedicated - GlobalScope.
Service - GlobalScope.
Shared - MessagePort
- Workers
- Workers.
Class - Workers.
Dedicated - Workers.
Service - Workers.
Shared