fun sendvals(c: chan<int>, count: int) {
let i = 0
while i < count {
c <- i
i = i + 1
}
}
fun main() {
let i = 0
while i < 100 {
let count = 1000
let a = make(chan<int>, count)
sahl sendvals(a, count)
let j = 0
while j < count {
print(<-a, "\n")
j = i + 1
}
i = i + 1
}
}
the code below gets stuck at 999 each time