Thread-safe cancellation and synchronization for web workers!

@wjfe/async-workers

Thread-safe cancellation and synchronization for web workers!

Before today, the only way to abort the work being done by a web worker was to terminate the worker. This is inconvenient because: - Data may be lost that would have to be re-transmitted to a new worker instance after termination. - Shared workers cannot be terminated. This NPM package can provide a cancellation token based on Atomics.
  • @wjfe/async-workers

Comments, support and feedback

    About this launch

    @wjfe/async-workers by José Pablo Ramírez Vargas Will be launched March 4th 2025.

    Trending launches