mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
timer: finish updating timer (#1222)
* timer: restructure feature flags * update timer tests * Add `async-traits` to CI This also disables a buggy `threadpool` test. This test should be fixed in the future. Refs #1225
This commit is contained in:
@@ -25,7 +25,7 @@ impl<T> Throttle<T> {
|
||||
pub fn new(stream: T, duration: Duration) -> Self {
|
||||
Self {
|
||||
delay: Delay::new_timeout(clock::now() + duration, duration),
|
||||
has_delayed: false,
|
||||
has_delayed: true,
|
||||
stream: stream,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user