ChannelReader<T>.CanPeek Property

Definition

Gets a value that indicates whether TryPeek(T) is available for use on this ChannelReader<T> instance.

public virtual bool CanPeek { get; }

Property Value

true if peeking is supported by this channel instance; false otherwise.

Applies to

Product Versions
.NET 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)