Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncSeq deadlocks in Blazor WASM environment #152

Open
ordinaryorange opened this issue Mar 30, 2022 · 2 comments
Open

AsyncSeq deadlocks in Blazor WASM environment #152

ordinaryorange opened this issue Mar 30, 2022 · 2 comments

Comments

@ordinaryorange
Copy link

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

@Xyncgas
Copy link

Xyncgas commented Sep 15, 2022

Interesting, apparently you are writing a function in f# and calling it in blazor, can I please see the function in f#

@ordinaryorange
Copy link
Author

Here is a repo
Run the app and index page will deadlock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants