<PackageReference Include="System.IO.Pipelines" Version="10.0.0-preview.4.25258.110" />

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.