-
Notifications
You must be signed in to change notification settings - Fork 1
chanrecv blocked while it shouldn't be #58
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
the code below gets stuck at 999 each time
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
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working