time: use intrusive lists for timer tracking (#3080)

More-or-less a half-rewrite of the current time driver, supporting the
use of intrusive futures for timer registration.

Fixes: #3028, #3069
This commit is contained in:
bdonlan
2020-11-23 10:42:50 -08:00
committed by GitHub
parent f927f01a34
commit ae67851f11
28 changed files with 1558 additions and 919 deletions
+2 -1
View File
@@ -49,7 +49,8 @@ async fn usage_stream() {
use tokio::stream::StreamExt;
let start = Instant::now();
let mut interval = time::interval(ms(10));
let interval = time::interval(ms(10));
tokio::pin!(interval);
for _ in 0..3 {
interval.next().await.unwrap();