Function createChildProcess
- createChildProcess<T>(
options: CreateThreadOptions,
onMessage?: (d: WorkerMessageBody<T>) => void,
): { controller: AbortController; wait: Promise<T>; worker: ChildProcess } Returns { controller: AbortController; wait: Promise<T>; worker: ChildProcess }
fork 方式创建子进程