Name | select
|
Definition | select:varargs.
select2(c1:var(chan(T1:type)),c2:var(chan(T2:type))):expr(int).
etc.
|
Example | forever(
case (select(c1,c2))
when 1 => c1?(c3!(?c1))
when 2 => c2?(c3!(?c2))
)
|
Defined in | channels.l
|
Implementation | lard
|
Description | Wait until data is available on one of the specified channels. Return an integer identifying which channel is ready.
|
See Also | chan_ready
|