Skip to content

durability: Simplify shutdown#4808

Merged
kim merged 1 commit intomasterfrom
kim/durability/simplify-shutdown
Apr 15, 2026
Merged

durability: Simplify shutdown#4808
kim merged 1 commit intomasterfrom
kim/durability/simplify-shutdown

Conversation

@kim
Copy link
Copy Markdown
Contributor

@kim kim commented Apr 15, 2026

We switched to using async-channel as the backing queue in 2b3aa5a,
which allows to close the channel on the sender side without dropping
the sender. This is unlike tokio channels, which require the sender to
be dropped, or the receiver to request the channel to be closed.

This allows to greatly simplify the async shutdown of a durability
instance by simply awaiting the actor's JoinHandle instead of a
complicated chain of notification primitives.

We switched to using `async-channel` as the backing queue in 2b3aa5a,
which allows to close the channel on the sender side without dropping
the sender. This is unlike tokio channels, which require the sender to
be dropped, or the receiver to request the channel to be closed.

This allows to greatly simplify the async shutdown of a durability
instance by simply awaiting the actor's `JoinHandle` instead of a
complicated chain of notification primitives.
@kim kim requested a review from gefjon April 15, 2026 09:41
Copy link
Copy Markdown
Contributor

@Shubham8287 Shubham8287 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much simplified indeed.

Comment thread crates/durability/src/imp/local.rs
@kim kim added this pull request to the merge queue Apr 15, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 15, 2026
@kim kim added this pull request to the merge queue Apr 15, 2026
Merged via the queue into master with commit 7d537d3 Apr 15, 2026
37 of 38 checks passed
@kim kim deleted the kim/durability/simplify-shutdown branch April 16, 2026 06:15
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.

3 participants