| BsonStreamAdapterFlushAsync 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.Bson.IO
    Assembly:
   MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
 Syntax
Syntaxpublic 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: 
TaskA task that represents the asynchronous flush operation.
 Exceptions
Exceptions See Also
See Also