Module deno_simple_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 be
Send
when transferring between threads, and then must be Clone
when it
has arrived on the parent thread. It can not be both at once without large
amounts of Arc
Builder for WebWorkerOptions
.
Enums
Error type for WebWorkerOptionsBuilder
Events that are sent to host from child worker.
Functions
This function should be called from a thread dedicated to this worker.