Skip to content

use a scheduled function for settimeofday_cb #6600

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

Merged
merged 8 commits into from
Oct 6, 2019
Merged

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Oct 4, 2019

Copy link
Collaborator

@devyte devyte left a comment

Choose a reason for hiding this comment

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

Please consider renaming functionalVoidVoid per comment.
Other than that, LGTM, approving.


#include <functional>

using functionalVoidVoid = std::function<void()>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is rather confusing.
How about just functionalVoid? Alternatively, a function that takes no args is called a nullary function. A function that doesn't return a value is called a void function. How about:
-nullaryVoid
-functionalNullaryVoid
-functionalVoidNullary
-some variation of the above

@d-a-v d-a-v merged commit c55f49b into esp8266:master Oct 6, 2019
@d-a-v d-a-v deleted the sntpcb branch October 6, 2019 20:51
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