For the complete documentation index, see llms.txt. This page is also available as Markdown.

initThreadPool

Description

The initThreadPool method initializes a thread pool of Workers to enable multi-threading, which significantly improves performance.

Returns

Returns a Promise that resolves when the thread pool has been successfully initialized.

Example

await initThreadPool();

Last updated