release: promote the shutdown teardown timer fix #45

Merged
chrnx merged 2 commits from develop into main 2026-08-18 14:20:37 +00:00
Owner

Fast-forward-only. main becomes an exact copy of develop (6672185).

One commit on top of the last promotion: runTeardown now arms its timer before the callback that clears it, matching closeApp. No behaviour change. Closes green-tea#20 on GitHub, which will be closed by hand since that issue lives on the other forge.

Fast-forward-only. `main` becomes an exact copy of `develop` (`6672185`). One commit on top of the last promotion: `runTeardown` now arms its timer before the callback that clears it, matching `closeApp`. No behaviour change. Closes green-tea#20 on GitHub, which will be closed by hand since that issue lives on the other forge.
chrnx added 2 commits 2026-08-18 14:19:42 +00:00
fix(shutdown): arm the teardown timer before the callback that clears it
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 14s
CI / build (pull_request) Successful in 25s
CI / runtimes (deno) (pull_request) Successful in 17s
CI / runtimes (edge) (pull_request) Successful in 11s
198e62944f
`runTeardown` declared `finish` above the `timer` it clears, so the
reference held only because every caller — the timer's own callback and
`teardown.run().then()` — happens to be asynchronous. That is correct by
timing rather than by construction, which is what #20 asked to remove from
this file; `closeApp` twenty lines below already arms its timer first and
carries a comment explaining why that direction is the safe one.

Reversing the order here leaves both shutdown paths resting the same forward
reference on the same guarantee: setTimeout cannot invoke its callback
synchronously. No behaviour changes.

Closes #20

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Merge pull request 'fix(shutdown): arm the teardown timer before the callback that clears it' (#44) from fix/teardown-timer-ordering into develop
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 14s
CI / build (pull_request) Successful in 23s
CI / runtimes (deno) (pull_request) Successful in 16s
CI / runtimes (edge) (pull_request) Successful in 12s
Promote → GitHub / push-github (push) Successful in 7s
CI / dco (push) Has been skipped
CI / runtimes (bun) (push) Successful in 13s
CI / build (push) Successful in 27s
CI / runtimes (deno) (push) Successful in 17s
CI / runtimes (edge) (push) Successful in 12s
6672185ba2
chrnx merged commit 6672185ba2 into main 2026-08-18 14:20:37 +00:00
Sign in to join this conversation.