fix: 🚑 I couldn't make tokio threads join

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-06-01 16:56:44 +03:00
parent ec5c6008f2
commit 82c2fb8883

View file

@ -141,8 +141,8 @@ async fn main() {
let thread = tokio::spawn(prime_async(math_magic * i, math_magic * (i + 1) - 1));
threads.push(thread);
}
for _ in threads {
tokio::join!();
for thread in threads {
let _ = tokio::join!(thread);
}
let time_elapsed = instant.elapsed();
time_values_tokio_thread.push(time_elapsed);