Join Slack
Powered by
Now your consumer is the same amount of code. Inst...
# coroutines
e
elizarov
12/24/2016, 5:43 PM
Now your consumer is the same amount of code. Instead of
byteStream.next()
it does
channel.next()
, but now you can throw a timeout channel into the mix. You can select from
both
bytestrem_ and
timeout
channel and terminate whichever comes first
Open in Slack
Previous
Next