sunbreak
08/30/2019, 11:37 AMFlow
like Observable.timeout
?Matej Drobnič
08/30/2019, 11:52 AMwithTimeout
method of the coroutines?gildor
08/30/2019, 12:10 PMsunbreak
08/30/2019, 10:58 PMprivate fun receiveChunks(count: Int) = notepadType!!.receiveFileInput()
.filter { it.first() == 0x05.toByte() }
// TODO Take with timeout
.take(count)
gildor
08/31/2019, 3:16 AMsunbreak
08/31/2019, 4:53 AMwithTimeout
doesn't work on iOS without runBlocking
. Is there another way round?gildor
09/01/2019, 1:19 AMsunbreak
09/01/2019, 2:19 AMdelay
requires runBlocking
. withTimeout
maybe the sameObservabel.timeout
by withTimeout
, but no luck. I find another way round, with dispatch_after
on iOS and Handler.postDelayed
on Android.