npm packages:
Changes:
- Sent message with or without awaiting them.
WorkerTask
keeps track of messages that need to be awaited.
- API clean-up and code improvements:
WorkerTask
contains async code improvements and it keeps track of outstanding messages (new)- Use configuration objects instead of long number of arguments
- Move static functions of classes to independent funtions
- Better function and class names
- Added helper functions for creating an OffscreenCanvas and delegating events to the worker.
- Extracted
Payload
fromDataPayload
and createdRawPayload
for supporting plain messages. - Added offscreen canvas related funcitonality and utilities:
- Provide framework independent worker and message payload extensions (
OffscreenWorker
andOffscreenPayload
) (wtd-core) MainEventProxy
allows configurable event delegation to a Worker (wtd-core)ElementProxyReceiver
can be used to simulate a canvas in a Worker (wtd-three-ext)
- Provide framework independent worker and message payload extensions (
- Added new example Inter-Worker Communication that demonstrates communication between workers utilizing message channels.