ChannelReader<T> ChannelReader<T> ChannelReader<T> ChannelReader<T> Class


Provides a base class for reading from a channel.

generic <typename T>
public ref class ChannelReader abstract
public abstract class ChannelReader<T>
type ChannelReader<'T> = class
Public MustInherit Class ChannelReader(Of T)

Type Parameters


Specifies the type of data that may be read from the channel.



ChannelReader<T>() ChannelReader<T>() ChannelReader<T>() ChannelReader<T>()


Completion Completion Completion Completion

Gets a Task that completes when no more data will ever be available to be read from this channel.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReadAllAsync(CancellationToken) ReadAllAsync(CancellationToken) ReadAllAsync(CancellationToken) ReadAllAsync(CancellationToken)

Creates an IAsyncEnumerable<T> that enables reading all of the data from the channel.

ReadAsync(CancellationToken) ReadAsync(CancellationToken) ReadAsync(CancellationToken) ReadAsync(CancellationToken)

Asynchronously reads an item from the channel.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryRead(T) TryRead(T) TryRead(T) TryRead(T)

Attempts to read an item from the channel.

WaitToReadAsync(CancellationToken) WaitToReadAsync(CancellationToken) WaitToReadAsync(CancellationToken) WaitToReadAsync(CancellationToken)

Returns a Task<TResult> that will complete when data is available to read.

Applies to