-
Notifications
You must be signed in to change notification settings - Fork 826
Fix receiving and processing mailbox after Dispose #13036
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
Fix receiving and processing mailbox after Dispose #13036
Conversation
I rewrote async to task and got a flaky test? https://dev.azure.com/dnceng/public/_build/results?buildId=1735500&view=logs&j=7bab896a-24f8-544f-51eb-43745367a332&t=999dbed9-85e3-59ab-57f0-3e22828b5bad&l=4813 |
…ld_stop_receiving_and_processing_messages
…ld_stop_receiving_and_processing_messages
Sorry I don't understand this error https://dev.azure.com/dnceng-public/public/_build/results?buildId=392941&view=logs&j=882ba401-d5d6-57d5-a958-980a439dbeb8&t=03421b2c-e47d-52ac-cb71-f3db07decb69&l=3480
|
The error is unrelated, sorry for this, int tests fail once in a while. Looks like rebuild helped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This would be a breaking change. Maybe we should consider adding a new constructor with the new behavior. |
Do you mean somebody was relying on sending messages after mailbox disposal and that behaviour should be preserved? |
Now it will throw on post if it's disposed. |
@rstm-sf It's now a runtime breaking change (since new exception will be thrown at runtime, if
|
…ld_stop_receiving_and_processing_messages
✅ No release notes required |
I've done all the steps, but 2 seems like a lot |
Wait, no, I meant we do either for those three, not all. New constructor sounds like a good middle ground |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
…ld_stop_receiving_and_processing_messages
…ld_stop_receiving_and_processing_messages
…ld_stop_receiving_and_processing_messages
…ld_stop_receiving_and_processing_messages
Fixed #10720
Is it worth worrying about it?
fsharp/src/fsharp/FSharp.Core/mailbox.fs
Lines 106 to 110 in dbf9a62