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
/
channel.d.ts
4 lines
(3 loc)
•
179 B
TypeScript
View Raw
1
2
3
4
import
{
Receiver
,
Sender
}
from
"."
;
export
declare
function
onceChannel<T>(): [
(
arg
: T
) =>
unknown
,
Promise
<T>];
export
declare
function
channel<T>(): [
Sender
<T>,
Receiver
<T>];