UNPKG
concurrent-worker
Version:
latest (1.2.1)
1.2.1
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
1.0.0-alpha1
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Multithreading for javascript
github.com/idicious/concurrent-worker
idicious/concurrent-worker
concurrent-worker
/
dist
/
worker-creation.d.ts
3 lines
(2 loc)
•
250 B
TypeScript
View Raw
1
2
3
import
{
IWorkerConfig
,
IWorkerContext
}
from
"./types"
;
export
declare
const
createWorkerUrl
: <T
extends
unknown
[], C
extends
IWorkerContext
, R>
(
execute
: (...args: T) => R,
config
:
IWorkerConfig
<T, C, R>,
terminateOnCompletion
?:
boolean
) =>
string
;