Skip to content
Sections
>> Trisquel >> 软件包 >> aramo >> javascript >> node-jest-worker
aramo  ]
[ 源代码: node-jest  ]

软件包: node-jest-worker (27.5.1~ds+~cs69.51.22-2)

node-jest-worker 的相关链接

node-jest-worker

Trisquel 的资源:

下载源码包 node-jest:

维护者:

Original Maintainers:

  • Debian Javascript Maintainers (Mail Archive)
  • Pirate Praveen
  • Yadd

外部的资源:

相似软件包:

Nodejs module for executing heavy tasks under forked processes in parallel

jest-worker provides a `Promise` based interface, minimum overhead and bound workers.

The module works by providing an absolute path of the module to be loaded in all forked processes. Files relative to a node module are also accepted. All methods are exposed on the parent process as promises, so they can be `await`'ed. Child (worker) methods can either be synchronous or asynchronous.

The module also implements support for bound workers. Binding a worker means that, based on certain parameters, the same task will always be executed by the same worker. The way bound workers work is by using the returned string of the `computeWorkerKey` method. If the string was used before for a task, the call will be queued to the related worker that processed the task earlier; if not, it will be executed by the first available worker, then sticked to the worker that executed it; so the next time it will be processed by the same worker. If you have no preference on the worker executing the task, but you have defined a `computeWorkerKey` method because you want _some_ of the tasks to be sticked, you can return `null` from it.

其他与 node-jest-worker 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: node-merge-stream
    Create a stream that emits events from multiple other streams
  • dep: node-supports-color
    Detect whether a terminal supports color in Node.js
  • dep: node-types-node
    软件包暂时不可用

下载 node-jest-worker

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 22.3 kB107 kB [文件列表]