ChannelReader<T> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
- T
Specifies the type of data that may be read from the channel.
- Inheritance
-
ChannelReader<T>
Channel |
Initializes an instance of the ChannelReader<T> class. |
Can |
Gets a value that indicates whether Count is available for use on this ChannelReader<T> instance. |
Can |
Gets a value that indicates whether TryPeek(T) is available for use on this ChannelReader<T> instance. |
Completion |
Gets a Task that completes when no more data will ever be available to be read from this channel. |
Count |
Gets the current number of items available from this channel reader. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Read |
Creates an IAsyncEnumerable<T> that enables reading all of the data from the channel. |
Read |
Asynchronously reads an item from the channel. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Try |
Attempts to peek at an item from the channel. |
Try |
Attempts to read an item from the channel. |
Wait |
Returns a ValueTask<TResult> that will complete when data is available to read. |
Produkt | Versiounen |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Feedback zu .NET
.NET ass en Open-Source-Projet. Wielt e Link, fir Feedback ze ginn: