task.channel()
Creates a bounded FIFO.
Signature
task.channel([capacity])
Parameters
Optional positive signed capacity, default 1.
Returns
Channel shared by VMs through transfer.
Behavior
Holds queued copies of messages up to capacity.
Errors
Nonpositive or too-large capacity.
Example
use task
q = task.channel(2)
task.close(q)