import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/parallel.ts";
This module provides JavaScript the ability to run functions in parallel threads and take advantage of multi-core CPUs, inspired by Golang.
Variables
Indicates whether the current thread is the main thread. | |
The maximum number of workers allowed to exist at the same time. If not set, the program by default uses CPU core numbers as the limit. | |
In browsers, by default, the program loads the worker entry directly from
GitHub, which could be slow due to poor internet connection, we can copy
the entry file |