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)
Specifies the type of data that may be written to the channel.
Initializes an instance of the ChannelWriter<T> class.
Mark the channel as being complete, meaning no more items will be written to it.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)
Attempts to mark the channel as being completed, meaning no more data will be written to it.
Attempts to write the specified item to the channel.
Returns a ValueTask<TResult> that will complete when space is available to write an item.
Asynchronously writes an item to the channel.