Skip to content

Hoist releasedBy/whenAborted — duplicated verbatim between start-temporal and start-amqp #24

Description

@btravers

From the 2026-08-13 repo audit.

releasedBy and whenAborted are duplicated verbatim between packages/start-temporal/src/temporal-runtime.ts:166-179 and packages/start-amqp/src/amqp-runtime.ts:165-178 — identical bodies, divergent TSDoc. Any runtime whose Serving.drain must honour the kernel's deadline AbortSignal will need them; a third runtime will copy them again.

Two copies is the last cheap moment to hoist.

Acceptance

  • The pair lives once — in @btravstack/start (as part of the runtime-author toolkit next to the Runtime contract) or a shared internal — and both packages consume it.
  • One TSDoc, kept where the code is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Wanted, not urgentenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions