Skip to main content

create()

create<Functions>(createFn): object

THIS IS A GENERATED FILE. DO NOT ALTER DIRECTLY.

Type Parameters

Functions

Functions extends Actions

Parameters

createFn

() => Worker | SharedWorker

Returns

object

destroy()

destroy: () => void

Returns

void

instance

instance: Worker | SharedWorker = worker

run()

run: <FunctionName, FunctionCall>(functionName, ...args) => Promise<ReturnType<FunctionCall>>

Type Parameters

FunctionName

FunctionName extends string | number | symbol

FunctionCall

FunctionCall extends (...args) => any

Parameters

functionName

FunctionName

args

...Parameters<FunctionCall>

Returns

Promise<ReturnType<FunctionCall>>