Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device.
A task that represents the asynchronous flush operation.
If a derived class, such as System.IO.Compression.DeflateStream or System.IO.Compression.GZipStream, does not flush the buffer in its implementation of the Stream.Flush method, the Stream.FlushAsync method will not flush the buffer.