Method
Flush
func Flush(cancellationToken: CancellationToken = default) -> Task<Result<void, StreamError>>
Declaring type: MemoryStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: MemoryStream.rvn
Implements OutputStream.Flush
Returns settled success for open memory storage; no data needs flushing.
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken |
CancellationToken |
Return value
Task<Result<void, StreamError>>
Remarks
Pre-cancellation wins over Closed. Does not change position or length.