Type alias ExecutorTask<Value>

ExecutorTask<Value>: ((signal, executor) => 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

      • signal: AbortSignal

        The AbortSignal that is aborted if task was discarded.

      • executor: Executor<Value>

        The executor that executes the task.

      Returns PromiseLike<Value> | Value

Returns

The value that the executor must be fulfilled with.