diff --git a/examples/assistants/src/main.rs b/examples/assistants/src/main.rs index ce50d227..35afe6bb 100644 --- a/examples/assistants/src/main.rs +++ b/examples/assistants/src/main.rs @@ -135,7 +135,7 @@ async fn main() -> Result<(), Box> { } } //wait for 1 second before checking the status again - std::thread::sleep(std::time::Duration::from_secs(1)); + tokio::time::sleep(tokio::time::Duration::from_secs(1)).await; } }