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 was launched by José Pablo Ramírez Vargas in March 4th 2025.

    • 0
      Upvotes
    • 1604
      Impressions
    • #19
      Week rank

    Trending launches