elizarov
06/07/2017, 9:57 PMwithTimeoutOrNull
currently returns null on any timeout, either its own or an external timeout. Your case clearly demonstrated the need to fix it, I think, so I’ve filed an issue for it: https://github.com/Kotlin/kotlinx.coroutines/issues/67 Please, use discussion in the issue, especially if somebody thinks that this should not be fixed and that withTimeoutOrNull
shall return null on any timeout (including an outer timeout)