System.Threading.Channels
Specifies the behavior to use when writing to a bounded channel that is already full.
Removes and ignores the newest item in the channel in order to make room for the item being written.
Removes and ignores the oldest item in the channel in order to make room for the item being written.
Drops the item being written.
Waits for space to be available in order to complete the write operation.
Provides options that control the behavior of bounded instances.
Initializes the options.
The maximum number of items the bounded channel may store.
Gets or sets the maximum number of items the bounded channel may store.
Gets or sets the behavior incurred by write operations when the channel is full.
Provides static methods for creating channels.
Creates a channel with the specified maximum capacity.
The maximum number of items the channel may store.
Specifies the type of data in the channel.
The created channel.
Creates a channel with the specified maximum capacity.
Options that guide the behavior of the channel.
Specifies the type of data in the channel.
The created channel.
Creates an unbounded channel usable by any number of readers and writers concurrently.
The type of data in the channel.
The created channel.
Creates an unbounded channel subject to the provided options.
Options that guide the behavior of the channel.
Specifies the type of data in the channel.
The created channel.
Provides a base class for channels that support reading and writing elements of type .
Specifies the type of data readable and writable in the channel.
Initializes an instance of the class.
Provides a base class for channels that support reading elements of type and writing elements of type .
Specifies the type of data that may be written to the channel.
Specifies the type of data that may be read from the channel.
Initializes an instance of the class.
Implicit cast from a to its readable half.
The being cast.
The readable half.
Implicit cast from a to its writable half.
The being cast.
The writable half.
Gets the readable half of this channel.
Gets the writable half of this channel.
Exception thrown when a channel is used after it's been closed.
Initializes a new instance of the class.
Initializes a new instance of the class.
The exception that is the cause of this exception.
Initializes a new instance of the class with serialized data.
The object that holds the serialized object data.
The contextual information about the source or destination.
Initializes a new instance of the class.
The message that describes the error.
Initializes a new instance of the class.
The message that describes the error.
The exception that is the cause of this exception.
Provides options that control the behavior of channel instances.
Initializes an instance of the class.
if operations performed on a channel may synchronously invoke continuations subscribed to
notifications of pending async operations; if all continuations should be invoked asynchronously.
readers from the channel guarantee that there will only ever be at most one read operation at a time;
if no such constraint is guaranteed.
if writers to the channel guarantee that there will only ever be at most one write operation
at a time; if no such constraint is guaranteed.
Provides a base class for reading from a channel.
Specifies the type of data that may be read from the channel.
Initializes an instance of the class.
Creates an that enables reading all of the data from the channel.
The cancellation token to use to cancel the enumeration.
The created async enumerable.
Asynchronously reads an item from the channel.
A used to cancel the read operation.
A that represents the asynchronous read operation.
Attempts to read an item from the channel.
The read item, or a default value if no item could be read.
if an item was read; otherwise, .
Returns a that will complete when data is available to read.
A used to cancel the wait operation.
A that will complete with a result when data is available to read
or with a result when no further data will ever be available to be read due to the channel completing successfully.
If the channel completes with an exception, the task will also complete with an exception.
Gets a value that indicates whether is available for use on this instance.
Gets a that completes when no more data will ever
be available to be read from this channel.
Gets the current number of items available from this channel reader.
Counting is not supported on this instance.
Provides a base class for writing to a channel.
Specifies the type of data that may be written to the channel.
Initializes an instance of the class.
Mark the channel as being complete, meaning no more items will be written to it.
Optional Exception indicating a failure that's causing the channel to complete.
The channel has already been marked as complete.
Attempts to mark the channel as being completed, meaning no more data will be written to it.
An indicating the failure causing no more data to be written, or null for success.
if this operation successfully completes the channel; otherwise, if the channel could not be marked for completion,
for example due to having already been marked as such, or due to not supporting completion.
.
Attempts to write the specified item to the channel.
The item to write.
if the item was written; otherwise, .
Returns a that will complete when space is available to write an item.
A used to cancel the wait operation.
A that will complete with a result when space is available to write an item
or with a result when no further writing will be permitted.
Asynchronously writes an item to the channel.
The value to write to the channel.
A used to cancel the write operation.
A that represents the asynchronous write operation.
Provides options that control the behavior of unbounded instances.
Initializes a new instance of the class.