<PackageReference Include="System.IO.Pipelines" Version="11.0.0-preview.1.26104.118" />

System.IO.Pipelines.FlushResult

public struct FlushResult
Result returned by FlushAsync call.
public bool IsCanceled { get; }

Gets a value that indicates whether the current FlushAsync operation was canceled by CancelPendingFlush.

public bool IsCompleted { get; }

Gets a value that indicates the reader is no longer reading data written to the PipeWriter.

public FlushResult(bool isCanceled, bool isCompleted)

Initializes a new instance of FlushResult struct setting the IsCanceled and IsCompleted flags.