CLOVIS
11/22/2025, 2:49 PMwhile (currentCoroutineContext().isActive) {
select {
// …
async {
readChannel.awaitContent(4 * 4) // standard message header size
}.onAwait { isActive ->
// …
}
}
}
Maybe that's not the correct way to use a ByteReadChannel in a select expression?CLOVIS
11/22/2025, 3:55 PMselect , but I'm still curious about the result)Aleksei Tirman [JB]
11/24/2025, 6:47 AMCLOVIS
11/24/2025, 8:17 AMAleksei Tirman [JB]
11/24/2025, 2:05 PM