diff --git a/src/FSharp.Control.AsyncSeq/AsyncSeq.fs b/src/FSharp.Control.AsyncSeq/AsyncSeq.fs index 0f826c2..3be0452 100644 --- a/src/FSharp.Control.AsyncSeq/AsyncSeq.fs +++ b/src/FSharp.Control.AsyncSeq/AsyncSeq.fs @@ -1906,7 +1906,9 @@ module AsyncSeq = use _ = { new IDisposable with member __.Dispose() = - e.DisposeAsync().AsTask() |> Async.AwaitTask |> Async.RunSynchronously } + // Fire-and-forget: avoids Async.RunSynchronously which deadlocks + // on single-threaded runtimes such as Blazor WASM (see issue #152). + e.DisposeAsync() |> ignore } let mutable currentResult = true while currentResult do