Module web_worker

Source

Structs§

SendableWebWorkerHandle
WebWorker
This struct is an implementation of Worker Web API
WebWorkerHandle
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 and other fun stuff.
WebWorkerInternalHandle
WebWorkerOptions
WebWorkerServiceOptions
WorkerId
WorkerMetadata

Enums§

WebWorkerType
WorkerControlEvent
Events that are sent to host from child worker.

Functions§

run_web_worker
This function should be called from a thread dedicated to this worker.