method poll
1 | class Channel |
1.1 | (Channel) method poll |
Documentation for method poll
assembled from the following types:
class Channel
From Channel
(Channel) method poll
Defined as:
method poll(Channel:)
Receives and removes an item from the channel. If no item is present, returns Nil
instead of waiting.
my = Channel.new;Promise.in(2).then:^10 .map();loop
See method receive
for a blocking version that properly responds to channel closing and failure.