Stream. Dispose Async Method
Asynchronously releases the unmanaged and managed resources used by the AuthenticatedStream.
public: override System::Threading::Tasks::ValueTask DisposeAsync();
public override System.Threading.Tasks.ValueTask DisposeAsync ();
override this.DisposeAsync : unit -> System.Threading.Tasks.ValueTask
Public Overrides Function DisposeAsync () As ValueTask
A task that represents the asynchronous dispose operation.
This method allows performing resource-intensive dispose operations without blocking the main thread.
This method also disposes the inner stream when LeaveInnerStreamOpen is
false; otherwise, the inner stream is just flushed.