System::Threading::Tasks::Task::Task constructor
Contents
[
Hide
]Task::Task() constructor
Internal constructor for creating uninitialized tasks.
System::Threading::Tasks::Task::Task()
See Also
- Class Task
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++
Task::Task(const Action<SharedPtr<Object>>&, const SharedPtr<Object>&) constructor
Constructs a Task with a stateful action and state object.
System::Threading::Tasks::Task::Task(const Action<SharedPtr<Object>> &action, const SharedPtr<Object> &state)
| Parameter | Type | Description |
|---|---|---|
| action | const Action<SharedPtr<Object>>& | The action to execute (accepts state object) |
| state | const SharedPtr<Object>& | User-defined state object passed to the action |
See Also
- Typedef Action
- Typedef SharedPtr
- Class Object
- Class Task
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++
Task::Task(const Action<SharedPtr<Object>>&, const SharedPtr<Object>&, const CancellationToken&) constructor
Constructs a Task with stateful action, state, and cancellation token.
System::Threading::Tasks::Task::Task(const Action<SharedPtr<Object>> &action, const SharedPtr<Object> &state, const CancellationToken &cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| action | const Action<SharedPtr<Object>>& | The action to execute (accepts state object) |
| state | const SharedPtr<Object>& | User-defined state object passed to the action |
| cancellationToken | const CancellationToken& | Token to monitor for cancellation requests |
See Also
- Typedef Action
- Typedef SharedPtr
- Class Object
- Class CancellationToken
- Class Task
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++
Task::Task(const Action<>&) constructor
Constructs a Task with an action to execute.
System::Threading::Tasks::Task::Task(const Action<> &action)
| Parameter | Type | Description |
|---|---|---|
| action | const Action<>& | The action to execute asynchronously |
See Also
- Typedef Action
- Class Task
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++
Task::Task(const Action<>&, const CancellationToken&) constructor
Constructs a Task with an action and cancellation token.
System::Threading::Tasks::Task::Task(const Action<> &action, const CancellationToken &cancellationToken)
| Parameter | Type | Description |
|---|---|---|
| action | const Action<>& | The action to execute asynchronously |
| cancellationToken | const CancellationToken& | Token to monitor for cancellation requests |
See Also
- Typedef Action
- Class CancellationToken
- Class Task
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++