1 min readJan 16, 2019
You can only guard on local conditions with if (guard) channel.onReceive { ... }
. This is actually used by the last solution with more involved code pattern here. However, you cannot guard on states of other coroutines.
You can only guard on local conditions with if (guard) channel.onReceive { ... }
. This is actually used by the last solution with more involved code pattern here. However, you cannot guard on states of other coroutines.
Project Lead for the Kotlin Programming Language @JetBrains