WebReflection / coincident

An Atomics based Proxy to simplify, and synchronize, Worker related tasks.
MIT License
203 stars 3 forks source link

Allow Worker callbacks w/out SharedArrayBuffer #37

Closed WebReflection closed 9 months ago

WebReflection commented 9 months ago

This MR auto-detect if the currently running environment does not, or cannot, use SharedArrayBuffer, allowing regardless, through the exact same contract/API, to invoke only from main any worker exposed utility.

The logic adds the least possible overhead in such scenario without penalizing performance at all.