System.Threading.Channels.ChannelReader: practical reference
System.Threading.Channels.ChannelReader: practical reference: ChannelReader<T> reads elements asynchronously and signals channel completion.
CKTIS / Knowledge base
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
System.Threading.Channels.ChannelReader: practical reference: ChannelReader<T> reads elements asynchronously and signals channel completion.
System.Threading.Channels.ChannelWriter: practical reference: ChannelWriter<T> writes elements and completes the channel through TryComplete or Complete.
System.Threading.Interlocked: practical reference: Interlocked performs atomic read-modify-write operations on supported memory locations.
System.Threading.SemaphoreSlim: practical reference: SemaphoreSlim limits concurrent entries and supports WaitAsync.
Task represents an asynchronous operation, while Task<T> also provides its result. Learn the differences between Task.Yield, blocking Task.WaitAll, and nonblocking Task.WhenAll, including result ordering and failure handling.
System.Threading.Tasks.TaskCompletionSource: practical reference: TaskCompletionSource<T> lets a producer complete a Task<T> manually.
System.Threading.Tasks.ValueTask: practical reference: ValueTask<T> can wrap a synchronous result or an asynchronous operation with fewer allocations.
System.Threading.Volatile: practical reference: Volatile.Read and Volatile.Write provide visibility and appropriate barriers for one memory location.
System.TimeOnly: practical reference: TimeOnly represents a time of day without a date, time zone, or offset.
System.TimeProvider: practical reference: TimeProvider abstracts current time and timers, enabling deterministic tests.
System.TimeSpan: practical reference: TimeSpan represents a duration as a number of ticks, not a date or time zone.
System.Type: practical reference: Type represents runtime type metadata, including generic definitions and members.
Task.Delay: practical reference: Task.Delay returns a Task that completes after a delay or cancellation without blocking a thread.
Task.Run: practical reference: Task.Run queues a delegate to the thread pool and returns a Task for its execution.
Task.WaitAsync: practical reference: Task.WaitAsync adds timeout or cancellation to waiting without changing the original Task.
Task.WhenAll: practical reference: Task.WhenAll completes after every task and aggregates results in input order.
Task.WhenAny: practical reference: Task.WhenAny completes when the first task reaches a terminal state and returns that Task.
TextWriter.Write(ReadOnlySpan<char>) writes characters from a memory view without appending a line terminator. It lets the caller pass a text slice without creating a substring, but does not guarantee allocation-free writing inside a particular writer.
Thread lets you create and control threads directly. Learn the difference between Start and Join, how to access the current thread, and the separate roles of CurrentCulture and CurrentUICulture.
Utf8JsonReader in System.Text.Json reads UTF-8 JSON bytes one token at a time, moving only forward. It lets you select values without building a document tree or deserializing the document into objects.
Utf8JsonWriter in System.Text.Json lets you manually write JSON as UTF-8 bytes to a Stream or IBufferWriter<byte>. You control property order and document structure, while the writer handles JSON syntax and string escaping.
Separate a small domain-specific language's syntax from its execution. A parser constructs an abstract syntax tree, and an AST interpreter computes the result from its nodes. This separation lets you test text processing, program representation, and execution rules independently.
asynchrony and concurrency: practical reference: Asynchrony frees a thread while waiting, while concurrency lets several operations make progress together.
collections: practical reference: Collections model ordering, uniqueness, mapping, and data mutability.