mpsc-channel
v1.0.2
Published
Multi-producer, single-consumer FIFO queue communication primitives
Maintainers
Readme
Simple mpsc channel function inspired of Rust's std::sync::mpsc
Multi-producer, single-consumer FIFO queue communication primitives
const [tx, rx] = channel<number>();
tx.send(1);
tx.send(2);
rx.recv((value) => {
console.log(value)
});