Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update topics example to use oneshot synchronization instead #430

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

anitarua
Copy link
Contributor

@anitarua anitarua commented Jan 9, 2025

Follow-up to #418

Simplifies the tokio synchronization so we can use oneshot instead.

Attempted to set up a timeout to abort the subscription task just in case, but cannot call subscriber_handle2.abort(); from both an async timeout block and the receiver.await block, so opted to exclude the time bound for this example.

@anitarua anitarua marked this pull request as ready for review January 9, 2025 18:39
@anitarua anitarua requested a review from malandis January 9, 2025 18:39
@anitarua anitarua requested a review from malandis January 9, 2025 19:03
@anitarua anitarua merged commit 1eb846d into main Jan 9, 2025
4 checks passed
@anitarua anitarua deleted the update-topics-example branch January 9, 2025 19:39
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.

2 participants