Method
Flush
abstract virtual func Flush(cancellationToken: CancellationToken = default) -> Task<Result<void, StreamError>>
Declaring type: OutputStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: OutputStream.rvn
Defined by OutputStream.Flush · Required implementation (no default).
Interface implementation: Required implementation (no default).
Flushes pending output; does not promise durable storage or peer receipt.
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken |
CancellationToken | Cancellation request for this operation. |
Return value
Task<Result<void, StreamError>>
Completion or a stream error.