Interface IFlushable
Represents a destination of data that can be flushed.
Namespace: DotNext.IO
Assembly: DotNext.dll
Syntax
public interface IFlushable
Methods
| Edit this page View SourceFlush()
Flushes this stream by writing any buffered output to the underlying stream.
Declaration
void Flush()
Exceptions
| Type | Condition |
|---|---|
| IOException | I/O error occurred. |
FlushAsync(CancellationToken)
Flushes this stream asynchronously by writing any buffered output to the underlying stream.
Declaration
Task FlushAsync(CancellationToken token = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | token | The token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task | The task representing state of asynchronous execution. |