314 pump wait union poll

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

lib/srcchan.kz

Actual

tick 0
tty read 1
sock read 2
tty idle 1
sock idle 2
tick interest fd -1
tty interest fd 3
sock interest fd 5
tty idle 1
sock idle 2
tick interest fd -1
tty interest fd 3
sock interest fd 5
tick 0
tty read 1
tty retired 1
sock read 2
sock retired 2
tick interest fd -1
tick interest fd -1
tick 0
tick retired 0
all participants retired

Expected output

tick 0
tty read 1
sock read 2
tty idle 1
sock idle 2
tick interest fd -1
tty interest fd 3
sock interest fd 5
tty idle 1
sock idle 2
tick interest fd -1
tty interest fd 3
sock interest fd 5
tick 0
tty read 1
tty retired 1
sock read 2
sock retired 2
tick interest fd -1
tick interest fd -1
tick 0
tick retired 0
all participants retired

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (tick, capacity: 2, source: *lib/srcchan:Tick<live!>)
flow ~new click a branch to expand · @labels scroll to their anchor
new (tty, capacity: 2, source: *lib/srcchan:Src<live!>)
flow ~new click a branch to expand · @labels scroll to their anchor
new (sock, capacity: 2, source: *lib/srcchan:Src<live!>)
flow ~open-src click a branch to expand · @labels scroll to their anchor
open-src (id: 1, want: 2)
flow ~create click a branch to expand · @labels scroll to their anchor
create (expr: main)
flow ~std/pump click a branch to expand · @labels scroll to their anchor
std/pump (main)
flow ~std/pump click a branch to expand · @labels scroll to their anchor
std/pump (main)
flow ~std/pump click a branch to expand · @labels scroll to their anchor
std/pump (main)
flow ~run click a branch to expand · @labels scroll to their anchor
run (expr: main)

Test Configuration

MUST_RUN

koru.json: