We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c1fcca commit 6bb53aeCopy full SHA for 6bb53ae
examples/async_source/main.rs
@@ -31,7 +31,7 @@ async fn run_server() -> Result<(), Box<dyn Error>> {
31
32
async fn run_client() -> Result<(), Box<dyn Error>> {
33
// Good enough for an example to allow server to start
34
- tokio::time::delay_for(tokio::time::Duration::from_secs(3)).await;
+ tokio::time::sleep(tokio::time::Duration::from_secs(3)).await;
35
36
let config = ConfigBuilder::<AsyncState>::default()
37
.add_async_source(HttpSource {
0 commit comments