010 two channels one pump

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

both sealed
left 100
right 200
pump drained

Expected output

both sealed
left 100
right 200
pump drained

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Reading, source: id: u64 ts: f64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: left, capacity: 8, source: reading: Reading)
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: right, capacity: 8, source: reading: Reading)
flow ~std/channel click a branch to expand · @labels scroll to their anchor
std/channel (left)
flow ~std/channel click a branch to expand · @labels scroll to their anchor
std/channel (right)
flow ~mk-reading click a branch to expand · @labels scroll to their anchor
mk-reading (i: 100, t: 1.0)
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 ~run click a branch to expand · @labels scroll to their anchor
run (main)

Test Configuration

MUST_RUN