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
|
@ -24,11 +24,11 @@ it(`select`, async function() {
|
|||
let i = 0;
|
||||
|
||||
do {
|
||||
switch (await Channel.select(
|
||||
switch (await Channel.select([
|
||||
a.push(GetValue()),
|
||||
b.push(GetValue()),
|
||||
closed.shift()
|
||||
)) {
|
||||
])) {
|
||||
case a:
|
||||
i++;
|
||||
a = Channel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue