Threading.Tasks API inventory
Provides Task, TaskCompletionSource, continuations, schedulers, awaiter-shaped helpers, and aggregate task coordination.
Ownership and selection
| Fact | Pinned value |
|---|---|
| Physical owner | modules/threading-tasks |
| CMake target | SharpRuntime::Threading.Tasks |
| Component kind | static |
| Direct production dependencies | Core.Base, Threading |
| External dependency | None |
| Public headers | 15 |
| Production sources | 3 |
Select the component
set(SHARP_RUNTIME_COMPONENTS Threading.Tasks)
set(SHARP_RUNTIME_BUILD_TESTS OFF CACHE BOOL "" FORCE)
add_subdirectory(sharp-runtime)
target_link_libraries(app PRIVATE SharpRuntime::Threading.Tasks)Compatibility and platform notes
These are native task objects and continuations, not C# async/await execution semantics. Ownership, observation, cancellation, and scheduler lifetime remain explicit.
Implementation-status evidence
The owning module contains 2 C++ test sources and participates in a physical component test executable. Source-file count is not a discovered-test count.
This page deliberately reports source and test topology instead of a hand-authored Done/Partial maturity badge. Consult limitations and subsystem documentation for material behavioral reductions.
Public header and entry inventory
This complete list is derived from modules/threading-tasks/include. Each filename is a public discovery entry; it may declare more than one type, and it does not imply method-level .NET parity.
System1 public header
System::Threading::Tasks14 public headers
System/Threading/Tasks/ConfigureAwaitOptions.hppSystem/Threading/Tasks/Parallel.hppSystem/Threading/Tasks/Task.hppSystem/Threading/Tasks/TaskCanceledException.hppSystem/Threading/Tasks/TaskCompletionSource.hppSystem/Threading/Tasks/TaskContinuationOptions.hppSystem/Threading/Tasks/TaskCreationOptions.hppSystem/Threading/Tasks/TaskExtensions.hppSystem/Threading/Tasks/TaskFactory.hppSystem/Threading/Tasks/TaskScheduler.hppSystem/Threading/Tasks/TaskSchedulerException.hppSystem/Threading/Tasks/TaskStatus.hppSystem/Threading/Tasks/UnobservedTaskExceptionEventArgs.hppSystem/Threading/Tasks/ValueTask.hpp