dave08
06/25/2018, 4:26 PMwhileSelect
, but what's the boolean that needs to be returned for? It doesn't look docuemented in the guide's examples..?elizarov
06/25/2018, 7:18 PMwhileSelect { ... }
is a shorthand for while(select { ... }) {}
, so the value of the boolean result is self-explanatory.dave08
06/25/2018, 8:04 PMuli
06/26/2018, 5:03 AMLoops while select expression returns true.
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.selects/while-select.htmldave08
06/26/2018, 10:20 AMselect
itself returns those results... When Roman showed that piece, it dawned on me, especially since whileSelect isn't mentioned in the api overview, you really have to look for that page.