2

假设我在频道中发送了一些值,

val channel = Channel<Int>()
launch {
    for (x in 1..5) channel.send(x * x)
}

我怎样才能“清除”它们?意思是在不使用它们的情况下消耗它们

4

0 回答 0