Module
Workers.Service
- Package
- purescript-workers
- Repository
- truqu/purescript-workers
#Registration Source
data Registration :: Type
#RegistrationOptions Source
type RegistrationOptions = { scope :: String, workerType :: WorkerType }
#getRegistration Source
getRegistration :: forall e. Maybe String -> Aff (worker :: WORKER | e) (Maybe Registration)
#register' Source
register' :: forall e. String -> RegistrationOptions -> Aff (worker :: WORKER | e) Registration
#installing Source
installing :: Registration -> Maybe Service
#scope Source
scope :: Registration -> String
#unregister Source
unregister :: forall e. Registration -> Aff (worker :: WORKER | e) Boolean
#onUpdateFound Source
onUpdateFound :: forall e' e. Registration -> Eff e' Unit -> Eff (worker :: WORKER | e) Unit
Re-exports from Workers
#postMessage' Source
postMessage' :: forall channel transfer msg e. Channel channel => channel -> msg -> Array transfer -> Eff (exception :: EXCEPTION, worker :: WORKER | e) Unit
Clones message and transmits it to the port object associated with dedicatedWorker-Global.transfer can be passed as a list of objects that are to be transferred rather than cloned.
- 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