Struct AsyncCommand<T>.Executor
- Namespace
- Executables
- Assembly
- executables.dll
public readonly struct AsyncCommand<T>.Executor : IAsyncExecutor<T, bool>, IEquatable<AsyncCommand<T>.Executor>
- Implements
-
IAsyncExecutor<T, bool>
- Inherited Members
Constructors
Executor(IAsyncCommand<T>)
public Executor(IAsyncCommand<T> command)
Parameters
commandIAsyncCommand<T>
Methods
Equals(Executor)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AsyncCommand<T>.Executor other)
Parameters
otherAsyncCommand<T>.ExecutorAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Execute(T, CancellationToken)
Executes the operation for the specified input value.
public ValueTask<bool> Execute(T input, CancellationToken token = default)
Parameters
inputTInput value.
tokenCancellationTokenCancellation token.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(Executor, Executor)
public static bool operator ==(AsyncCommand<T>.Executor left, AsyncCommand<T>.Executor right)
Parameters
leftAsyncCommand<T>.ExecutorrightAsyncCommand<T>.Executor
Returns
operator !=(Executor, Executor)
public static bool operator !=(AsyncCommand<T>.Executor left, AsyncCommand<T>.Executor right)
Parameters
leftAsyncCommand<T>.ExecutorrightAsyncCommand<T>.Executor