diff --git a/xml/System.IO/FileStream.xml b/xml/System.IO/FileStream.xml index ddf9d0ce089..509ef897f76 100644 --- a/xml/System.IO/FileStream.xml +++ b/xml/System.IO/FileStream.xml @@ -2864,12 +2864,15 @@ Calling `DisposeAsync` allows the resources used by the The token to monitor for cancellation requests. - Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests. + Asynchronously clears all buffers for this stream, causes any buffered data to be written to the file, and monitors cancellation requests. A task that represents the asynchronous flush operation. method with the `flushToDisk` parameter set to `true`. + If the operation is canceled before it completes, the returned task contains the value for the property. If the handle to the file is disposed, the returned task contains the exception in the property. This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as , are still thrown synchronously. For the stored exceptions, see the exceptions thrown by .