4#include <system/object.h>
5#include <system/iequatable.h>
6#include <system/threading/tasks/async.h>
7#include <system/threading/tasks/task.h>
9namespace System {
namespace Runtime {
namespace CompilerServices {
10class ValueTaskAwaiter;
11class ConfiguredValueTaskAwaitable;
14namespace Threading {
namespace Tasks {
17class ASPOSECPP_SHARED_CLASS
ValueTask final :
public IEquatable<ValueTask>,
public System::Details::BoxableObjectBase
86namespace Runtime {
namespace CompilerServices {
98 bool continueOnCapturedContext =
false;
113 bool m_continueOnCapturedContext;
Defines a method that determines the equality of two objects. Objects of this class should only be al...
Definition: iequatable.h:16
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Definition: value_task.h:89
void OnCompleted(const Action<> &continuation)
bool get_IsCompleted() const
ValueTaskAwaiter(Threading::Tasks::ValueTask task)
Provides an awaitable result of an asynchronous operation.
Definition: value_task.h:18
ValueTask(const TaskPtr &task)
Constructs a ValueTask from a shared pointer to a Task.
Runtime::CompilerServices::ValueTaskAwaiter GetAwaiter() const
Gets an awaiter for this task to support await expressions.
Runtime::CompilerServices::ConfiguredValueTaskAwaitable ConfigureAwait(bool continueOnCapturedContext) const
Configures an awaiter for this task.
bool get_IsCanceled() const
Gets a value indicating whether the task completed due to being canceled.
bool operator!=(const ValueTask &other) const
Inequality operator for ValueTask.
bool get_IsCompletedSuccessfully() const
Gets a value indicating whether the task completed successfully.
ValueTask()
Constructs an empty, uninitialized ValueTask.
bool Equals(ValueTask other) override
Determines whether this instance equals another ValueTask instance.
bool get_IsFaulted() const
Gets a value indicating whether the task completed due to an unhandled exception.
bool Equals(System::SharedPtr< System::Object > obj) override
Determines whether this instance equals another object.
bool operator==(const ValueTask &other) const
Equality operator for ValueTask.
bool get_IsCompleted() const
Gets a value indicating whether the task has completed.
TaskPtr AsTask() const
Converts this ValueTask to a shared pointer to Task.
Definition: db_command.h:9
MulticastDelegate< void(Args...)> Action
Delegate type that references methods that have no return value.
Definition: action.h:40
Threading::Tasks::ResultValueTask< T > MakeValueAsync(const Details::ResultAsyncFunction< T > &fnc)
Definition: result_value_task.h:213