Type Alias ExecutorTask<Value>

ExecutorTask<Value>: ((signal: AbortSignal, executor: Executor<Value>) => PromiseLike<Value> | Value)

The task that can be executed by an Executor.

Type Parameters

  • Value = any

    The value stored by the executor.

Type declaration

    • (signal, executor): PromiseLike<Value> | Value
    • Parameters

      Returns PromiseLike<Value> | Value

      The value that the executor must be fulfilled with.