This repository is now ARCHIVED.
The code from this project has been deprecated.
See Jcd.Threading for the latest code.
A netstandard2.0 library that provides utility classes to help with managing Task
s,
creating custom TaskScheduler
s, and creating thread safe value access.
Read the API docs carefully.
- The main types provided are:
TaskSchedulerExtensions
- a static class supporting aTask.Run
-compatible API that ensures actions are executed on a specified instance ofTaskScheduler
.SynchronizedValue
- a flexible and CLS compliant re-imagining ofInterlocked
.CurrentSchedulerTaskRunner
- a static class supporting aTask.Run
-compatible API that ensures actions are executed on the current executingTaskScheduler
.CuustomSchedulerTaskRunner
- a static class supporting aTask.Run
-compatible API that ensures actions are executed on a single instance of a custom implementation ofTaskScheduler
.SimpleThreadedTaskScheduler
- A custom task scheduler base class that allocates a fixed pool of threads on which to run tasks.
See EXAMPLES.md for detailed examples.