Cuemon.Threading Namespace
Execute parallel loops, manage concurrent regions, and apply advanced threading patterns with synchronous or asynchronous delegates. Use this namespace when you need fine-grained control over concurrent iterations. Start with ParallelLoop for synchronous parallelism or AsyncParallelLoop for asynchronous patterns with cancellation, throttling, and aggregation.
Availability: .NET 10, .NET 9 and .NET Standard 2.0
Complements: System.Threading namespace 🔗
Related: Cuemon.Extensions.Threading.Tasks namespace 📘
Classes
- AdvancedParallelFactory
Provides a factory based way to work with advanced scenarios that encapsulate and re-use existing code while adding support for typically long-running parallel loops and regions.
- AsyncActionFactory
Provides access to factory methods for creating AsyncActionFactory<TTuple> instances that encapsulate a Task based function delegate with a variable amount of generic arguments.
- AsyncActionFactory<TTuple>
Provides a way of invoking an Action delegate regardless of the amount of parameters provided.
- AsyncFuncFactory
Provides access to factory methods for creating AsyncFuncFactory<TTuple, TResult> instances that encapsulate a Task<TResult> based function delegate with a variable amount of generic arguments.
- AsyncFuncFactory<TTuple, TResult>
Provides a way of invoking an Func<TResult> function delegate regardless of the amount of parameters provided.
- AsyncOptions
Specifies options that is related to asynchronous operations.
- AsyncPatterns
Provides a generic way to support different types of design patterns and practices with small utility methods scoped to Task.
- AsyncRunOptions
Provides options that are related to asynchronous run operations.
- AsyncTaskFactoryOptions
Configuration options for ParallelFactory.
- AsyncWorkloadOptions
Configuration options for ParallelFactory.
- Awaiter
Provides a set of static methods for awaiting asynchronous operations.
- ForLoopRuleset<TOperand>
Specifies the rules of a for-loop control flow statement.
- ParallelFactory
Provides a factory based way to encapsulate and re-use existing code while adding support for typically long-running parallel loops and regions.
- TimerFactory
Provides access to factory methods for creating and configuring Timer instances.
Interfaces
- IAsyncOptions
Defines options that is related to asynchronous operations.
Enums
- RelationalOperator
Defines the most common numerical relational operators.