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

Expose tokio::time::clock #2313

Closed
MOZGIII opened this issue Mar 10, 2020 · 2 comments
Closed

Expose tokio::time::clock #2313

MOZGIII opened this issue Mar 10, 2020 · 2 comments
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. M-time Module: tokio/time

Comments

@MOZGIII
Copy link
Contributor

MOZGIII commented Mar 10, 2020

Version

tokio 0.2.13 doesn't expose it.

Description

tokio::time::clock is really neat. It would be great if it's exposed at the public API.

@Darksonn Darksonn added A-tokio Area: The main tokio crate C-feature-request Category: A feature request. M-time Module: tokio/time labels Apr 29, 2020
@carllerche
Copy link
Member

More details is needed to evaluate this request. What is the motivation behind this request? What alternatives have been tried, ...

@MOZGIII
Copy link
Contributor Author

MOZGIII commented Apr 29, 2020

The main goal is to improve the test here: https://github.com/timberio/vector/blob/e3566cdcdd9a9abeebc57be5cfda1c125a870a00/src/expiring_hash_map.rs#L243-L270

No alternatives were considered. I don't have other ideas really - leaving it as is maybe.

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. M-time Module: tokio/time
Projects
None yet
Development

No branches or pull requests

3 participants