<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.5.0" />

ReactiveUI.Primitives.Signals.CommandExecution<TResult>

public struct CommandExecution<TResult> : IEquatable<CommandExecution<TResult>>
Awaitable command execution result that avoids allocating a completed task for synchronous commands.

Awaiter for command execution.

public CommandExecution(TResult result)

Initializes a new instance of the CommandExecution<T> struct.

public CommandExecution(Task<TResult> task)

Initializes a new instance of the CommandExecution<T> struct.

public CommandExecution(Exception exception)

Initializes a new instance of the CommandExecution<T> struct.

public static bool op_Equality(CommandExecution<TResult> left, CommandExecution<TResult> right)

public static bool op_Inequality(CommandExecution<TResult> left, CommandExecution<TResult> right)

public CommandExecution<TResult> ConfigureAwait(bool continueOnCapturedContext)

Configures whether task continuations marshal back to the captured context.

public bool Equals(CommandExecution<TResult> other)

public Awaiter<TResult> GetAwaiter()

Gets the awaiter.