async sleep

This commit is contained in:
dignifiedquire
2020-03-04 17:27:25 +01:00
parent 43a8828430
commit 62bfa5157b
4 changed files with 6 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ impl JobThread {
if !using_handle {
return;
}
std::thread::sleep(std::time::Duration::from_micros(300 * 1000));
async_std::task::sleep(std::time::Duration::from_micros(300 * 1000)).await;
}
}