React Executor - v0.0.28
    Preparing search index...

    Interface ExecutorTask<Value>

    The task that can be executed by an Executor.

    interface ExecutorTask<Value = any> {
        callback: ExecutorTaskCallback<Value>;
        pendingValue?: Value;
        preserveLatestTask?: boolean;
    }

    Type Parameters

    • Value = any

      The value stored by the executor.

    Index

    Properties

    The task callback that can be executed by an Executor.

    pendingValue?: Value

    The value to resolve the executor with immediately while callback is pending. Acts as an optimistic result — the UI can render with this value before the task settles. Replaced by the real result on fulfillment, or discarded and rolled back on rejection.

    If undefined, the executor remains in its current state while the task is pending.

    preserveLatestTask?: boolean

    If true, Executor.task is not overwritten by this task upon execution.

    Useful when the task is the canonical source of truth for the executor and should not be silently replaced by a one-off execution — for example, a polling task or a task submitted by a plugin.

    false