Thread
functionToWorker (fn: (): any): string
Converts a function into a WebWorker URL object that can be passed into thread(). Note that fn
has to be a single function with no external references or bindings, so that it can be stringified using .toString().
Name | Type | Default | Description |
---|---|---|---|
fn | (): any |