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

iceoryx2_cal::event::Listener::**_wait_all shall use callback with result #259

Open
elfenpiff opened this issue Jul 1, 2024 · 0 comments

Comments

@elfenpiff
Copy link
Contributor

Brief feature description

The signature of all functions in the Listener trait in the iceoryx2_cal::event concept shall be adjusted to

fn **_wait_all<F: FnMut(TriggerId) -> Result<CallbackProgression, ListenerWaitError>(&self, callback: F) -> Result<(), ListenerWaitError>;

This allows a better usage and the ? operator inside the callback as well as the implementation. Furthermore, it allows to stop the progress when an error occurs or a certain user condition is met (thanks to CallbackProgression).

The iceoryx2::port::Listener::**wait_all API shall be adjusted as well after the same scheme.

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

No branches or pull requests

1 participant