Module deno_runtime::web_worker
source · Structs§
- This struct is an implementation of
Worker
Web API - This is the handle to the web worker that the parent thread uses to communicate with the worker. It is created from a
SendableWebWorkerHandle
which is sent to the parent thread from the worker thread where it is created. The reason for this separation is that the handle first needs to beSend
when transferring between threads, and then must beClone
when it has arrived on the parent thread. It can not be both at once without large amounts of Arcand other fun stuff.
Enums§
- Events that are sent to host from child worker.
Functions§
- This function should be called from a thread dedicated to this worker.