Skip to content

Switch shutdown logic to cancellation tokens [4 / 4]#185

Closed
MOZGIII wants to merge 4 commits intopiercefreeman:mainfrom
MOZGIII:refactors-2
Closed

Switch shutdown logic to cancellation tokens [4 / 4]#185
MOZGIII wants to merge 4 commits intopiercefreeman:mainfrom
MOZGIII:refactors-2

Conversation

@MOZGIII
Copy link
Collaborator

@MOZGIII MOZGIII commented Feb 21, 2026

Review: b92b9dd

This goes in after #184

This PR unifies the inconsistent use of various primitives for graceful shutdown logic to using tokio_util::sync::CancellationToken everywhere.

It also provides more explicit control over whether the runloop should exit when idle or now.

While working on this, I've had two instances of the tests catching behavior changes - so I appreciate the test coverage.

@MOZGIII MOZGIII changed the title Switch shutdown logic to cancellation tokens Switch shutdown logic to cancellation tokens [4 / ?] Feb 21, 2026
@MOZGIII MOZGIII force-pushed the refactors-2 branch 2 times, most recently from 884cab3 to b92b9dd Compare February 22, 2026 10:57
@MOZGIII MOZGIII changed the title Switch shutdown logic to cancellation tokens [4 / ?] Switch shutdown logic to cancellation tokens [4 / 4] Feb 22, 2026
@MOZGIII
Copy link
Collaborator Author

MOZGIII commented Mar 1, 2026

See #197

@MOZGIII MOZGIII closed this Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant