Concurrency
_ := process(10, 20)
channel = createChannel(int, 10)
#pass channel to a task
int_result := process(10, channel)
#write data into the channel (blocks if channel is full)
channel.write(100)
#read data from channel (blocks if there is nothing to read)
data = channel.read()Last updated
Was this helpful?