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

Add getter for the period of an Interval #3701

Closed
DBLouis opened this issue Apr 14, 2021 · 1 comment · Fixed by #3705
Closed

Add getter for the period of an Interval #3701

DBLouis opened this issue Apr 14, 2021 · 1 comment · Fixed by #3705
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Help is requested to fix this issue. M-time Module: tokio/time

Comments

@DBLouis
Copy link
Contributor

DBLouis commented Apr 14, 2021

It would be nice to have access to the inner period field of Interval to avoid duplicating it elsewhere. A simple const getter should be fine.

@DBLouis DBLouis added A-tokio Area: The main tokio crate C-feature-request Category: A feature request. labels Apr 14, 2021
@Darksonn Darksonn added M-time Module: tokio/time E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Help is requested to fix this issue. labels Apr 14, 2021
@Darksonn
Copy link
Contributor

Sure, this seems good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. E-easy Call for participation: Experience needed to fix: Easy / not much E-help-wanted Call for participation: Help is requested to fix this issue. M-time Module: tokio/time
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants