System::Threading::Tasks::ResultTask class
Contents
[
Hide
]ResultTask class
A Task specialization that returns a result value upon completion.
template<typename T>class ResultTask : public System::Threading::Tasks::Task
| Parameter | Description |
|---|---|
| T | The type of the result value returned by the task |
Methods
| Method | Description |
|---|---|
| ConfigureAwait(bool) const | Configures how awaits on this result task should behave regarding context capture. |
| ContinueWith(const Action<RTaskPtr<T>>&) | Creates a continuation that executes when the result task completes. |
| get_Result() const | Gets the result of the asynchronous operation. |
| GetAwaiter() const | Gets an awaiter for this result task for use with Await. |
| ResultTask(const Func<T>&) | Constructs a ResultTask with a function that returns a value. |
| ResultTask() | Internal implementation. Not for user code. |
| ResultTask(const T&) | Internal constructor for creating result tasks with specified result. |
| set_Result(const T&) | Sets the result value for the task. |
Remarks
Represents an asynchronous operation that produces a result, similar to System.Threading.Tasks.Task
See Also
- Class Task
- Namespace System::Threading::Tasks
- Library Aspose.PDF for C++