marcinmoskala
01/14/2019, 8:14 AMlouiscad
01/14/2019, 8:24 AMmarcinmoskala
01/14/2019, 8:32 AMEvgeniy Zaharov
01/14/2019, 8:52 AMantonis
01/14/2019, 8:56 AMspand
01/14/2019, 8:56 AMmarcinmoskala
01/14/2019, 9:15 AMactor
typing makes this line too long to fit)antonis
01/14/2019, 9:28 AMSlava Glushenkov
01/14/2019, 9:32 AMlouiscad
01/14/2019, 10:57 AMmarcinmoskala
01/14/2019, 1:00 PMgroostav
01/14/2019, 6:16 PMChannels
can get into failed
vs closed
symatics? Thats one of the single biggest things that's tripped me up. I'm still not really sure of chan.consumeEach
vs for(it in chan)
with respect to closed and failed channelsval producer = produce {
for(i in 1 .. 5){ send(i * i) }
}
println(producer.receive()) //1
println(producer.receive()) //4
for(element in producer){
println(element) //9, 16, 25
}
?
Also consider that consumeEach
ObsoleteCoroutinesApi
Dispatchers.Unconfined
does not change thread implies something semantic when I really think its only safe to use this for performance/debugging. Maybe say "Use first available dispatcher for performance"?Allan Wang
01/14/2019, 8:43 PMDispatchers.Default
really use "a different thread if possible"? It just submits the request to a "default" thread pool doesn't it?marcinmoskala
01/16/2019, 11:05 AMlouiscad
01/16/2019, 8:23 PMmarcinmoskala
01/17/2019, 10:03 PMSaiedmomen
01/18/2019, 7:29 PMwithContext
is blocking