louiscad
05/09/2019, 3:57 PMkevin.cianfarini
05/09/2019, 4:46 PMrecievesendthisDominaezzz
05/09/2019, 5:15 PMselectPaul Woitaschek
05/09/2019, 6:24 PMbj0
05/09/2019, 8:45 PMselectproduceFlowlouiscad
05/09/2019, 10:24 PMgaetan
05/09/2019, 10:44 PMbohsen
05/10/2019, 5:53 AMbj0
05/10/2019, 5:57 AMselectproducelouiscad
05/10/2019, 7:23 AMConflatedBroadcastChannelselectproduceDominaezzz
05/10/2019, 8:20 AMlouiscad
05/10/2019, 10:22 AMDominaezzz
05/10/2019, 10:26 AMDataClass(channel1.receive(), channel2.receive(), channel3.receive(), channel4.receive())louiscad
05/10/2019, 10:28 AMDominaezzz
05/10/2019, 10:30 AMDominaezzz
05/10/2019, 1:06 PMbj0
05/11/2019, 7:26 AM= produce {Paulius Ruminas
05/13/2019, 7:51 AMvar latestOne: E1 = one.receive()
var latestTwo: E2 = two.receive()
select<Unit> {
        one.onReceive { latestOne = it }
        two.onReceive { latestTwo = it }
}CancellationExceptionlouiscad
05/13/2019, 8:11 AMlaunchReceiveChannel<T>louiscad
05/13/2019, 8:13 AMPaulius Ruminas
05/13/2019, 8:21 AMYes, that shouldn't be a problem since it'll be eaten byBut it will cancel the whole scope if it is notlaunch
SupervisedrunBlocking {
            val a = produce {
                while (true) {
                    delay(1_000)
                    send(1)
                }
            }
            val b = produce {
                while (true) {
                    delay(2_000)
                    send(2)
                }
            }
            coroutineScope {
                launch {
                    while (true) {
                        println("Test")
                        delay(1_000)
                    }
                }
                launch {
                    combineLatest(a, b) { a, b -> Pair(a, b) }.consumeEach {
                        println(it)
                    }
                }
                delay(10_000)
                a.cancel()
            }
        }a.cancel()Exceptionlouiscad
05/13/2019, 8:25 AMrunBlocking {
    launch {}.cancel()
}launchasyncDico
05/13/2019, 3:57 PMonReceiveDominaezzz
05/13/2019, 6:05 PMlouiscad
05/13/2019, 6:18 PM