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

timer: have example use delay_for instead of delay #1735

Merged
merged 2 commits into from
Nov 7, 2019

Conversation

llebout
Copy link
Contributor

@llebout llebout commented Nov 6, 2019

Motivation

It is a more common use case that is to simply cause a delay for an amount of time.

Solution

I think it is more appropriate to show off delay_for in the example rather than delay that is useful only for less common use cases.

It is a more common use case that is to simply cause a delay for an amount of time.
I think it is more appropriate to show off `delay_for` in the example rather than `delay` that is useful only for less common use cases.
Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@llebout
Copy link
Contributor Author

llebout commented Nov 6, 2019

@carllerche carllerche merged commit 9bec094 into tokio-rs:master Nov 7, 2019
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