async.js多线程

时间:2019-02-17 16:47:24

标签: javascript asynchronous

我想知道async.js是否可以使用多核(线程)。源代码表示否,但也许我只是在误解此注释:

async.parallel:

 * **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about
 * parallel execution of code.  If your tasks do not use any timers or perform
 * any I/O, they will actually be executed in series.  Any synchronous setup
 * sections for each task will happen one after the other.  JavaScript remains
 * single-threaded.

是否有某种方法可以在多个线程中执行此操作?我有一些可以处理数据库条目的作业,我需要它们始终在所有内核上运行。

0 个答案:

没有答案