The value stored by the executor.
The task callback that can be executed by an Executor.
OptionalpendingThe 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.
OptionalpreserveIf 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.
The task that can be executed by an Executor.