WebWorkersAPI
Types
cache
Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. See Cache on MDN
type cache = {}
cacheQueryOptions
type cacheQueryOptions = { mutable ignoreSearch?: bool, mutable ignoreMethod?: bool, mutable ignoreVary?: bool,}
Record fields
ignoreSearch
ignoreMethod
ignoreVary
cacheStorage
The storage for Cache objects. See CacheStorage on MDN
type cacheStorage = {}
Module
There are methods and helpers defined in CacheStorage .
multiCacheQueryOptions
type multiCacheQueryOptions = { mutable ignoreSearch?: bool, mutable ignoreMethod?: bool, mutable ignoreVary?: bool, mutable cacheName?: string,}
Record fields
ignoreSearch
ignoreMethod
ignoreVary
cacheName
workerGlobalScope
The WorkerGlobalScope interface of the Web Workers API is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. See WorkerGlobalScope on MDN
type workerGlobalScope = { caches: cacheStorage, crossOriginIsolated: bool,}
Record fields
Module
There are methods and helpers defined in WorkerGlobalScope .