@lage-run/worker-threads-pool
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

@lage-run/worker-threads-pool

This is an worker_threads based threadpool implementation. We had to implement one of these because lage needs access to the stdin/stdout of the workers themselves for the purpose of logging and preserving them as cached outputs. This way, the workers can be long lived, but the their logs will be associated with the correct target.

It is completely based on the Node.js documentation for async_hook: https://nodejs.org/api/async_context.html#using-asyncresource-for-a-worker-thread-pool

Readme

Keywords

none

Package Sidebar

Install

npm i @lage-run/worker-threads-pool

Weekly Downloads

210

Version

0.8.0

License

MIT

Unpacked Size

52.7 kB

Total Files

28

Last publish

Collaborators

  • ecraig12345_msft
  • kenotron_msft