Restate Typescript SDK
    Preparing search index...
    OnMainExit: "abandon" | "join"

    Policy for what happens to still-running spawned routines when the main operation settles.

    • "abandon" (default): run() returns as soon as the main operation settles. Still-running spawned routines (including fibers synthesized internally by combinator fallbacks) are abandoned at their current suspension point — they are never resumed again, so no catch/finally blocks run and the sources they were parked on are dropped. Durable work they already started is journaled as usual; only the in-memory continuation is discarded.
    • "join": run() keeps driving until every routine has finished. A spawned routine parked on a source that never settles keeps the handler from returning forever — prefer "abandon" unless the workflow relies on fire-and-forget routines completing.