UNPKG
mpmc
Version:
latest (0.4.0)
0.4.0
0.3.0
0.2.0
0.1.0
Async multi-producer, multi-consumer FIFO queue communication utilies
gitlab.com/rasmusmerzin/mpmc
mpmc
/
dist
/
receiver.d.ts
9 lines
(8 loc)
•
306 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
declare
class
Receiver
<T> {
recv
:
() =>
Promise
<T |
null
>;
close
:
() =>
boolean
;
constructor
(
recv
: () =>
Promise
<T |
null
>,
close
: () =>
boolean
); [
Symbol
.
asyncIterator
]():
AsyncGenerator
<T>;
forEach
:
(
f
: (msg: T) =>
unknown
) =>
Promise
<
void
>;
collect
:
() =>
Promise
<T[]>; }