ReactiveUI.Primitives.Signals.CommandExecution<TResult>
Awaitable command execution result that avoids allocating a completed task for synchronous commands.
namespace ReactiveUI.Primitives.Signals
{
public readonly struct CommandExecution<[System.Runtime.CompilerServices.Nullable(2)] TResult> : IEquatable<CommandExecution<TResult>>
{
public readonly struct Awaiter : ICriticalNotifyCompletion, INotifyCompletion, IEquatable<Awaiter>
{
public bool IsCompleted { get; }
public Awaiter(Task<TResult> task, TResult result, Exception exception, bool continueOnCapturedContext);
public TResult GetResult();
public void OnCompleted(Action continuation);
public void UnsafeOnCompleted(Action continuation);
public static bool operator !=(Awaiter left, Awaiter right);
public static bool operator ==(Awaiter left, Awaiter right);
public bool Equals(Awaiter other);
}
public CommandExecution(TResult result);
public CommandExecution(Task<TResult> task);
public CommandExecution(Exception exception);
public CommandExecution<TResult> ConfigureAwait(bool continueOnCapturedContext);
public Awaiter GetAwaiter();
public static bool operator !=(CommandExecution<TResult> left, CommandExecution<TResult> right);
public static bool operator ==(CommandExecution<TResult> left, CommandExecution<TResult> right);
public bool Equals(CommandExecution<TResult> other);
}
}