Skip to content

Commit 7bb1d8f

Browse files
authored
Try without para tags
Added additional remarks about resource management and UI thread considerations when using DisposeAsync.
1 parent 73920b2 commit 7bb1d8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

xml/System.IO.Compression/BrotliStream.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@
549549
<summary>Asynchronously releases the unmanaged resources used by the <see cref="T:System.IO.Compression.BrotliStream" />.</summary>
550550
<returns>A task that represents the asynchronous dispose operation.</returns>
551551
<remarks>
552+
Calling `DisposeAsync` allows the resources used by the <see cref="T:System.IO.Compression.BrotliStream" /> to be reallocated for other purposes. For more information, see [Cleaning Up Unmanaged Resources](/dotnet/standard/garbage-collection/unmanaged).
552553
<para>The `DisposeAsync` method lets you perform a resource-intensive dispose operation without blocking the main thread. This performance consideration is particularly important in a Windows 8.x Store app or desktop app where a time-consuming stream operation can block the UI thread and make your app appear as if it is not working. The async methods are used in conjunction with the <see langword="async" /> and <see langword="await" /> keywords in Visual Basic and C#.</para>
553554
<para>This method disposes the Brotli stream by writing any changes to the backing store and closing the stream to release resources.</para>
554555
<para>Calling `DisposeAsync` allows the resources used by the <see cref="T:System.IO.Compression.BrotliStream" /> to be reallocated for other purposes. For more information, see [Cleaning Up Unmanaged Resources](/dotnet/standard/garbage-collection/unmanaged).</para>

0 commit comments

Comments
 (0)