christophsturm
05/11/2020, 7:09 PMzak.taccardi
05/11/2020, 7:11 PMrunBlocking
- prefer runBlocking
as it is less complexstreetsofboston
05/11/2020, 7:12 PMrunBlockingTest {
val flow = callbackFlow<Int> {
awaitClose {}
}
flow.collect { ... }
}
^^^ This would show that error, since the call to collect will never resume.christophsturm
05/11/2020, 7:34 PMrunBlockingTest
? i close it later in a tear down method