Function setDownloadWorkerSpawner

  • Sets the worker spawner for the download manager. in gmll this function looks like this

    import { Worker, WorkerOptions } from "worker_threads"; export function makeWorker(options) { return new Worker(new URL("./get.js", import.meta), options); }

    where "./get.js" references this file src/modules/internal/get.js

    Parameters

    • func: ((options) => Promise<Worker>)
        • (options): Promise<Worker>
        • Parameters

          • options: WorkerOptions

          Returns Promise<Worker>

    Returns void

Generated using TypeDoc