See Original text in context
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.