You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal exception surfacing when calling Post on disposed MailBoxProcessor #17849
I think getting an ObjectDisposedException is the right scenario if the object was disposed.
But it should be better controlled by Fsharp.Core and not thrown from internal usage.
I think the exception happens in a code path that was there before that PR.
I think getting an ObjectDisposedException is the right scenario if the object was disposed. But it should be better controlled by Fsharp.Core and not thrown from internal usage.
This may be a breaking change. It seems the current standard behavior most of the time is waiting indefinitely on a disposed wait handle. Only on rare occasions where the wait handle is disposed while it's not awaited this here bug happens.
Activity
majocha commentedon Oct 8, 2024
This happens with timeouts or cancellation enabled, only then a wait handle is used in Mailbox.
majocha commentedon Oct 8, 2024
Minimal repro:
T-Gro commentedon Oct 14, 2024
Related to https://github.com/dotnet/fsharp/pull/13036/files#diff-89da65b208fb5d835cded7993284e2c562b2d6530cc320cc030f5079dfc0372b possibly?
T-Gro commentedon Oct 14, 2024
I think getting an ObjectDisposedException is the right scenario if the object was disposed.
But it should be better controlled by Fsharp.Core and not thrown from internal usage.
majocha commentedon Oct 24, 2024
I think the exception happens in a code path that was there before that PR.
This may be a breaking change. It seems the current standard behavior most of the time is waiting indefinitely on a disposed wait handle. Only on rare occasions where the wait handle is disposed while it's not awaited this here bug happens.
Fix Post on disposed mailbox (#17849) (#17922)