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

Deferred message filter/feed activation for race-free setups #132

Merged
merged 4 commits into from
Nov 25, 2024

Conversation

mhidalgo-bdai
Copy link
Contributor

Message filters (and feeds too, by transitivity) can easily lose messages when these are chained while messages are being dispatched. This is a very real possibility when e.g. setting up topic subscriptions against a Node that is spinning in the background.

To alleviate this, this patch introduces start()/stop() semantics to both message filters and feeds. Default behavior remains the same, but users can now choose not to autostart them and defer it until after all chaining is complete.

@mhidalgo-bdai mhidalgo-bdai marked this pull request as ready for review November 21, 2024 18:21
Copy link
Collaborator

@tcappellari-bdai tcappellari-bdai left a comment

Choose a reason for hiding this comment

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

lgtm

Signed-off-by: Michel Hidalgo <[email protected]>
@mhidalgo-bdai mhidalgo-bdai merged commit 5aa699a into main Nov 25, 2024
4 checks passed
@mhidalgo-bdai mhidalgo-bdai deleted the mhidalgo-bdai/deferred-feed-start branch November 25, 2024 15:57
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.

4 participants