013 multi kind channel

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

sealed
reading 1
alert 7
pump drained

Expected output

sealed
reading 1
alert 7
pump drained

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Reading, source: id: u64)
flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Alert, source: level: u64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: wire, capacity: 8, source: reading: Reading, alert: Alert)
flow ~std/channel click a branch to expand · @labels scroll to their anchor
std/channel (wire)
flow ~std/channel click a branch to expand · @labels scroll to their anchor
std/channel (wire)
flow ~mk-reading click a branch to expand · @labels scroll to their anchor
mk-reading (i: 1)
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 ~run click a branch to expand · @labels scroll to their anchor
run (main)

Test Configuration

MUST_RUN