Skip to content

Refactor cancelable operation paths to avoid lifecycle duplication #52

Description

@kcosr

The HTTP wait/foreground cancellation work introduced parallel *_cancelable paths through operation execution. They are behaviorally intended to match the existing non-cancelable paths, but session lifecycle, outcome mapping, and error handling now have to stay synchronized by hand.

Follow-up: collapse the duplicated operation/session/launch/run helpers into shared implementations that take Option<CancellationToken> or an equivalent execution option, keeping the public behavior unchanged.

Scope notes:

  • Keep this as a no-behavior-change refactor.
  • Preserve existing tests for normal run/launch, HTTP wait disconnect, foreground interrupt, and detach behavior.
  • Avoid mixing in launch setup-step cancellation or other cancellation semantics changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions