Skip to content

chanrecv blocked while it shouldn't be #58

@ammarbinfaisal

Description

@ammarbinfaisal

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
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions