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

Launch periodic task from a handler implemented #100

Merged

Conversation

AlexanderSuprunenko
Copy link
Contributor

No description provided.

@AlexanderSuprunenko AlexanderSuprunenko force-pushed the feature/launch-periodic-task branch 2 times, most recently from 840d547 to e688faa Compare October 17, 2018 21:17
{
if(io_thread)
{//it is called from pre_action or post_action, and we can call requestAddPeriodicTask directly
addPeriodicTask({nullptr, h_worker, nullptr}, interval_ms, initial_interval_ms);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm lost a bit -- it seems a recursion, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. This addPeriodicTask takes Router::Handler& , addPeriodicTask that is called takes Router::Handler3&

@AlexanderSuprunenko AlexanderSuprunenko merged commit 32718a4 into development/v.0.0.2 Nov 9, 2018
@AlexanderSuprunenko AlexanderSuprunenko deleted the feature/launch-periodic-task branch November 9, 2018 17:20
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.

None yet

2 participants