UNPKG
@chainsafe/threads
Version:
latest (1.11.3)
1.11.3
1.11.2
1.11.1
1.11.0
1.10.0
1.9.0
1.8.0
Web workers & worker threads as simple as a function call
threads.js.org
andywer/threads.js
@chainsafe/threads
/
dist
/
ponyfills.d.ts
9 lines
(8 loc)
•
222 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
declare
type
SettlementResult
<T> = {
status
:
"fulfilled"
;
value
: T; } | {
status
:
"rejected"
;
reason
:
any
; };
export
declare
function
allSettled<T>(
values
: T[]):
Promise
<
Array
<
SettlementResult
<T>>>;