Select: Make compose-friendly by taking a known number of arguments.
This commit is contained in:
parent
d7355e17e1
commit
6ea2b8bafe
5 changed files with 24 additions and 22 deletions
|
@ -18,7 +18,7 @@ it(`doubleselect`, async function() {
|
|||
// different channels.
|
||||
const sender = async (n, c1, c2, c3, c4) => {
|
||||
for (let i = 0; i < n; i++) {
|
||||
await Channel.select(c1.push(i), c2.push(i), c3.push(i), c4.push(i));
|
||||
await Channel.select([c1.push(i), c2.push(i), c3.push(i), c4.push(i)]);
|
||||
}
|
||||
|
||||
c1.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue