Sitemap
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.

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

Responses (1)