ChannelWriter<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 writing to a channel.
generic <typename T>
public ref class ChannelWriter abstract
public abstract class ChannelWriter<T>
type ChannelWriter<'T> = class
Public MustInherit Class ChannelWriter(Of T)
- T
Specifies the type of data that may be written to the channel.
- Inheritance
-
ChannelWriter<T>
Channel |
Initializes an instance of the ChannelWriter<T> class. |
Complete(Exception) |
Mark the channel as being complete, meaning no more items will be written to it. |
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) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Try |
Attempts to mark the channel as being completed, meaning no more data will be written to it. |
Try |
Attempts to write the specified item to the channel. |
Wait |
Returns a ValueTask<TResult> that will complete when space is available to write an item. |
Write |
Asynchronously writes an item to the channel. |
Produkt | Versjoner |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: