diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-23 10:15:55 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-23 10:15:55 +0300 |
commit | 1fc24589806a08080ae0862a309d938ce649fdc5 (patch) | |
tree | 7471b15c3fc5db689b3e0d80bebed4f565eb16e6 | |
parent | ac662c299c0cf97d1305e2ee832f2cbeaf1c3edd (diff) | |
download | summain-rs-1fc24589806a08080ae0862a309d938ce649fdc5.tar.gz |
yield_now
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -98,6 +98,7 @@ async fn file_checksum(path: &Path) -> std::io::Result<String> { break; } hasher.update(&buf[..n]); + tokio::task::yield_now().await; } let hash = hasher.finalize(); Ok(format!("{:x}", hash)) |