louiscad
06/11/2018, 12:49 PMselect
expression? If yes, for what use cases?deviant
06/11/2018, 2:05 PMval hr = select {
heartRateValueChannel.onReceive { it }
onTimeout(10, TimeUnit.SECONDS, { -1 })
}
minivac
06/11/2018, 2:36 PMlouiscad
06/11/2018, 2:38 PMwithTimeout
or withTimeoutOrNull
bj0
06/11/2018, 9:27 PMlouiscad
06/11/2018, 10:41 PMbj0
06/11/2018, 10:50 PMStatus
updates from a connection object, but I can also push my own custom Status
objects. I use an actor
looping on select
to combine those two sources into a single Status
channel