Class ResultExtensions
Provides various extension methods for FlushResult and ReadResult types.
Inherited Members
Namespace: DotNext.IO.Pipelines
Assembly: DotNext.IO.dll
Syntax
public static class ResultExtensions
Methods
| Edit this page View SourceThrowIfCancellationRequested(in FlushResult, CancellationToken)
Throws OperationCanceledException if I/O operation is canceled.
Declaration
public static void ThrowIfCancellationRequested(this in FlushResult result, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
FlushResult | result | The result of I/O operation to check. |
CancellationToken | token | The token that may be a source of cancellation. |
Exceptions
Type | Condition |
---|---|
OperationCanceledException | I/O operation has been canceled. |