Skip to content

AsyncSeq deadlocks in Blazor WASM environment #152

@ordinaryorange

Description

@ordinaryorange

Description

When calling AsyncSeq.ofAsyncEnum the thread becomes deadlocked and the app grinds to a halt

Please provide the steps required to reproduce the problem

Following code called from an async method in a Blazor WASM app (eg OnInitializedAsync())

    printfn "Starting length print"

    let! len = AsyncSeq.init 10 id |> AsyncSeq.toAsyncEnum |> AsyncSeq.ofAsyncEnum |> AsyncSeq.length

    printfn "Length is:%i" len

Expected behavior

Don't eat my thread, it is the only one I have

Known workarounds

Grabbing the AsyncEnumerator and iterating over that..ugh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions