-
Notifications
You must be signed in to change notification settings - Fork 814
Add Dispose
member to MailboxProcessor
#14929
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
Conversation
I am unsure how to solve the failing tests. Here's the error:
Previously, the error message was "Unexpectedly present", and so I edited the Could someone help me out here and explain what the surface area test is doing and how I should go about fixing it? It would be much appreciated. Thank you! |
@bmitc, if you copy the .out over the .bsl that are pointed by the test output, you should be able to see the diff when you are about to commit the difference. |
Thank you for the confirmation that that is the appropriate thing to do! My previous commit was just a guess toward that end, but I wasn't for sure if something was generating the BSL file, and just copying over the actual output over the expected felt like "cheating" the test. Haha. What does BSL stand for? Is it just there to keep track of the available types, functions, members, etc. that are exposed by the DLLs and make sure the DLLs expose these as expected with new builds? |
Thank you for the clarification @psfinaki! I had later read about the BSL here, but thanks for the updating the docs! Thanks for the help everyone and for merging. Also, I was looking to add a unit test for Are there any ideas as to a proper test for |
@bmitc so AFAIU the test you link just checks that nothing blows up. I think xUnit now doesn't have things like Otherwise, I've found this thread about testing the Dispose method. I'm all up for testing in general, but if you think it's an overkill, that's fine. |
* Add `Dispose` member to `MailboxProcessor` * Update FSharp.Core.SurfaceArea.netstandard21.release.bsl * Update FSharp.Core.SurfaceArea.netstandard20.release.bsl
Closes fsharp/fslang-suggestions#1198
This rather minimal change adds a public
Dispose
member to theMailboxProcessor
. The benefits are:MailboxProcessor
implementsIDisposable
and thus must be disposedIDisposable
, as in(mailboxProcessor :> IDisposable).Dispose()
before disposingPlease see the above linked suggestion for more details.
Some questions: