Show / Hide Table of Contents

Class ResultExtensions

Provides various extension methods for FlushResult and ReadResult types.

Inheritance
object
ResultExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.IO.Pipelines
Assembly: DotNext.IO.dll
Syntax
public static class ResultExtensions

Methods

| Edit this page View Source

ThrowIfCancellationRequested(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.

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾