Table of Contents

Interface IAsyncCommand<T>

Namespace
Executables
Assembly
executables.dll

Represents an asynchronous command that may succeed or fail.

public interface IAsyncCommand<in T> : IAsyncExecutable<T, bool>

Type Parameters

T

Type of the command input.

Inherited Members

Methods

Execute(T, CancellationToken)

Executes the command.

ValueTask<bool> Execute(T input, CancellationToken token = default)

Parameters

input T

Command input.

token CancellationToken

Cancellation token.

Returns

ValueTask<bool>

true when a handler completed successfully; otherwise, false.