npm packages:
Changes:
- Sent message with or without awaiting them.
WorkerTaskkeeps track of messages that need to be awaited.
- API clean-up and code improvements:
WorkerTaskcontains 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
PayloadfromDataPayloadand createdRawPayloadfor supporting plain messages. - Added offscreen canvas related funcitonality and utilities:
- Provide framework independent worker and message payload extensions (
OffscreenWorkerandOffscreenPayload) (wtd-core) MainEventProxyallows configurable event delegation to a Worker (wtd-core)ElementProxyReceivercan 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.