We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Interval timers could be used for creating a retry mechanism. As an example, see the following scenario:
callback
microloop::timers::set_interval
Currently the until it succeeds part cannot be satisfied by the current API because the callback has no way of stopping the timer.
Changes in the API:
TimerController
cancel
Timer
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Interval timers could be used for creating a retry mechanism. As an example, see the following scenario:
callback
function does some operation that might failmicroloop::timers::set_interval
with callbackcallback
to repeat the operation every X seconds until it succeeds.Currently the until it succeeds part cannot be satisfied by the current API because the callback has no way of stopping the timer.
Changes in the API:
TimerController
class should be implemented with acancel
method.TimerController
constructed when theTimer
is constructed.The text was updated successfully, but these errors were encountered: