Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DisposeAsync()

virtual ValueTask System.IO.Stream.DisposeAsync ( )
inlinevirtualinherited

Implements System.IAsyncDisposable.

Reimplemented in System.IO.Compression.BrotliStream, System.IO.Compression.DeflateStream, System.IO.Compression.GZipStream, System.IO.Compression.ZLibStream, System.IO.IsolatedStorage.IsolatedStorageFileStream, System.IO.DelegatingStream, System.Net.Http.Http3RequestStream.Http3ReadStream, System.Net.Http.MultipartContent.ContentReadStream, System.Net.Security.AuthenticatedStream, System.Net.Security.NegotiateStream, System.Net.Security.SslStream, System.IO.DelegatingStream, System.IO.Strategies.BufferedFileStreamStrategy, System.IO.Strategies.DerivedFileStreamStrategy, System.IO.Strategies.Net5CompatFileStreamStrategy, System.IO.Strategies.OSFileStreamStrategy, System.IO.BufferedStream, System.IO.FileStream, System.IO.Stream.SyncStream, System.Text.TranscodingStream, and System.Security.Cryptography.CryptoStream.

Definition at line 654 of file Stream.cs.

655 {
656 try
657 {
658 Dispose();
659 return default(ValueTask);
660 }
661 catch (Exception exception)
662 {
664 }
665 }
void Dispose()
Definition Stream.cs:639
static ValueTask FromException(Exception exception)
Definition ValueTask.cs:190

References System.IO.Stream.Dispose(), System.exception, and System.Threading.Tasks.ValueTask< TResult >.FromException().

Referenced by System.IO.Compression.BrotliStream.DisposeAsync(), System.IO.Compression.DeflateStream.DisposeAsync(), System.IO.DelegatingStream.DisposeAsync(), System.Net.Http.Http3RequestStream.DisposeAsync(), System.Net.Security.AuthenticatedStream.DisposeAsync(), System.IO.Strategies.BufferedFileStreamStrategy.DisposeAsync(), System.IO.BufferedStream.DisposeAsync(), System.IO.FileStream.DisposeAsync(), System.IO.Stream.SyncStream.DisposeAsync(), System.Text.TranscodingStream.DisposeAsync(), System.Xml.XmlEncodedRawTextWriter.DisposeAsyncCore(), System.Xml.XmlUtf8RawTextWriter.DisposeAsyncCore(), and System.Security.Cryptography.CryptoStream.DisposeAsyncCore().