Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

as_list

concur.Channel.as_list

Create a lazy list of received values from a channel

This can be used to process all the values of a channel, e.g., you can

sum_channel(ch Channel N : numeric) =>
ch.as_list.sum

Note that in case of several concurrent readers, each value will end up
with being seen by only one reader.

Unless the Channel is closed, this will block to read at least one
value from this Channel.
0.098dev (GIT hash b44352b4c68decbc58a097b291a1c8f3a5a05486)
last changed: 2026-07-03