Table of Contents

Struct AsyncQuery<T1, T2>.Executor

Namespace
Executables
Assembly
executables.dll
public readonly struct AsyncQuery<T1, T2>.Executor : IAsyncExecutor<T1, T2>, IEquatable<AsyncQuery<T1, T2>.Executor>
Implements
Inherited Members

Constructors

Executor(IAsyncQuery<T1, T2>)

public Executor(IAsyncQuery<T1, T2> query)

Parameters

query IAsyncQuery<T1, T2>

Methods

Equals(Executor)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(AsyncQuery<T1, T2>.Executor other)

Parameters

other AsyncQuery<T1, T2>.Executor

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Execute(T1, CancellationToken)

Executes the operation for the specified input value.

public ValueTask<T2> Execute(T1 input, CancellationToken token = default)

Parameters

input T1

Input value.

token CancellationToken

Cancellation token.

Returns

ValueTask<T2>

Asynchronous execution result.

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 ==(AsyncQuery<T1, T2>.Executor left, AsyncQuery<T1, T2>.Executor right)

Parameters

left AsyncQuery<T1, T2>.Executor
right AsyncQuery<T1, T2>.Executor

Returns

bool

operator !=(Executor, Executor)

public static bool operator !=(AsyncQuery<T1, T2>.Executor left, AsyncQuery<T1, T2>.Executor right)

Parameters

left AsyncQuery<T1, T2>.Executor
right AsyncQuery<T1, T2>.Executor

Returns

bool