Add wait_until_* functionality to Waiter

This commit is contained in:
Chen Chengjun
2024-09-14 10:13:14 +08:00
committed by Tate, Hongliang Tian
parent 6a5a5b4d3d
commit 1873bb7a3f
5 changed files with 140 additions and 62 deletions

View File

@ -264,7 +264,7 @@ impl Monitor {
for local_pool in worker_pool.local_pools.iter() {
local_pool.set_heartbeat(false);
}
sleep_queue.wait_until_or_timeout(|| -> Option<()> { None }, &sleep_duration);
let _ = sleep_queue.wait_until_or_timeout(|| -> Option<()> { None }, &sleep_duration);
}
}
}