> For the complete documentation index, see [llms.txt](https://zpass.docs.aleo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zpass.docs.aleo.org/zpass-sdk/overview/initthreadpool.md).

# 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

```javascript
await initThreadPool();
```
