Lets say I've sent a few values in a channel,
val channel = Channel<Int>()
launch {
for (x in 1..5) channel.send(x * x)
}
How can I "clear" them? Meaning consume them without using them
Lets say I've sent a few values in a channel,
val channel = Channel<Int>()
launch {
for (x in 1..5) channel.send(x * x)
}
How can I "clear" them? Meaning consume them without using them
Copyright © 2021 Jogjafile Inc.