mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 05:46:29 +03:00
async sleep
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user