全部搜尋項
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: node-jest  ]

套件:node-jest-worker(29.3.1~ds1+~cs70.48.25-2)

node-jest-worker 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 node-jest

維護小組:

外部的資源:

相似套件:

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 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 node-jest-worker

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 109。4 kB317。0 kB [檔案列表]