Optional
from: CallableReadonly
Internal
abortAbortController used internally to abort the process.
This is internal only, and triggering it at the wrong time may cause undefined and unsupported behavior. Do not use!
Instead, if you want to be able to abort the walk at any time, provide your own AbortSignal in the opions.
Readonly
dependentsSet of dependents (direct & transitive) on each node
Readonly
directSet of direct dependents on each node
Readonly
errorsRejections and Errors encountered in the traversal
Readonly
failTrue if we are in failFast mode
Readonly
fromFunction defining the callsite where the traversal was initiated, used for Error.captureStackTrace.
Readonly
optionsOptions provided to constructor
Readonly
resultsThe map of traversal results
Readonly
settledThe map of PromiseSettledResult objects
For a Node n
that depends directly or transitively on Node d
, find the
shortest known dependency path from n
to d
. This is done by walking
backwards breadth-first up the dependency relations from d
until n
is
found.
If no known path can be found, then undefined
is returned. Otherwise,
a path array is returned that starts with n
and ends with d
.
Note that self-referential links are never considered, since they're by definition cyclical.
Synchronous graph runner