DelegatingStream.FlushAsync Method (CancellationToken) (original) (raw)
DelegatingStreamFlushAsync Method (CancellationToken)
Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
Namespace: MongoDB.Driver.GridFS
Assembly: MongoDB.Driver.GridFS (in MongoDB.Driver.GridFS.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public override Task FlushAsync( CancellationToken cancellationToken )
Public Overrides Function FlushAsync ( cancellationToken As CancellationToken ) As Task
abstract FlushAsync : cancellationToken : CancellationToken -> Task override FlushAsync : cancellationToken : CancellationToken -> Task
Parameters
cancellationToken
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests. The default value is None.
Return Value
Type: Task
A task that represents the asynchronous flush operation.
Exceptions
See Also