Internal exception surfacing when calling Post
on disposed MailBoxProcessor
#17849
Labels
Milestone
Post
on disposed MailBoxProcessor
#17849
I can see the above exception occasionally in this test:
fsharp/tests/FSharp.Core.UnitTests/FSharp.Core/Microsoft.FSharp.Control/MailboxProcessorType.fs
Line 316 in e6854f5
I assume the expected behavior here is no exception?
I'll try to come up with consistent minimal repro, but the problem seems to be here:
fsharp/src/FSharp.Core/mailbox.fs
Lines 189 to 193 in 69fa88b
ev
is disposed andSet
will fail.The fix seems to be to also assign null to
pulse
when disposing it here:fsharp/src/FSharp.Core/mailbox.fs
Lines 336 to 346 in 69fa88b
The text was updated successfully, but these errors were encountered: