Stream.DisposeAsync() .NET Standard 2.0 [Answered]

Is there any way to dispose a stream asynchronously in .NET Standard 2.0? Would using await Task.Run(stream.Dispose); work?
That's not really async You're just shunting the Dispose onto the thread pool And waiting asynchronously for that to finish Just use normal Dispose
Dispose should be called normally when you using a using clause
✅ This post has been marked as answered!

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Is this how all API's work?https://youtu.be/ZveW4_ZJtVY?t=475 I've always struggled with the concept of what an API actually iapi to accept headerhi all, how do we add an api to accept a header value sent from postman? does it make sense to add What's the most optimal approach to learning to implement functions?Context: I'm really stressed out by the pace of my course, constantly panicking, and right now I feeVisual Studio project structureI am having a dive into https://github.com/dotnet/samples/tree/main/core/hosting TLDR; of what the eminimal api create own authorisation?Hey Everyone, i am still struggeling with my Project (simple Console App - Minimal Web Api - discordDocker build failingHey so i am getting `CSC : error CS5001: Program does not contain a static 'Main' method suitable foreplace 'backslah' to 'doublebackslah' but if char already not double```a\aa\a -> a\\aa\\a ab\\aba\aa\a -> ab\\aba\\aa\\a ```Simpler route to get into webdevI've programmed in c# for a long time before (both console and winforms), but not much in recent yeaApi questionHi, I want to create a API that return data from another API, my question is regarding how to struEnable button from another Form [Answered]there is -Main menu then 3 subforms to main menu -A, B, C I want to enable Main Menu button when raw string vs verbatin string [Answered]what is the difference between `@"` and `"""`Windows Visual studio 2022 designer bugging outWhen I try and open my designer all it shows is this, but my Form1.designer.cs, code is still their