UNPKG
workerama
Version:
latest (0.4.0)
0.4.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.0
0.0.0
Run sync/async function across Worker Threads
github.com/nextools/metarepo
nextools/metarepo
workerama
/
types
/
index.d.ts
9 lines
(8 loc)
•
239 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
declare
type
TWorkeramaOptions
= {
items
:
any
[];
maxThreadCount
:
number
;
fnFilePath
:
string
;
fnName
:
string
;
fnArgs
:
any
[]; };
export
declare
const
workerama
: <T>
(
options
:
TWorkeramaOptions
) =>
AsyncIterable
<T>;