Dex TypeScript SDK 1.32.0
    Preparing search index...

    Function withCancelingSteps

    • Returns a copy selecting every current execution of the supplied Step types.

      Dex resolves one snapshot after execute succeeds. Finished, already-canceled, and absent executions are no-ops. Steps scheduled by the same decision are excluded. Repeated calls take the union, and Flow-wide selection supersedes sibling selection. The Worker validates each target when it applies the returned decision; an invalid target fails the handler result with InvalidStepResultError.

      Parameters

      • decision: StepDecision

        Decision to copy.

      • ...steps: readonly StepTarget<any>[]

        Registered instances, StepRef values, or unambiguous Step classes.

      Returns StepDecision

      A new decision containing the combined Flow-wide selectors.