Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/parallel/threads.ts>createWorker

A JavaScript extension package for building strong and modern applications.
Latest
function createWorker
import { createWorker } from "https://deno.land/x/ayonli_jsext@v0.9.72/parallel/threads.ts";

Parameters

options: { parallel: { workerEntry: string | undefined; }; adapter?: "worker_threads" | "child_process"; }

Returns

Promise<{ worker: ; workerId: number; kind:
| "web_worker"
| "bun_worker"
| "node_worker"
| "node_process"
; }>