diff options
| author | Adam Greig <[email protected]> | 2023-10-15 00:57:25 +0100 |
|---|---|---|
| committer | Adam Greig <[email protected]> | 2023-10-15 01:30:12 +0100 |
| commit | 0621e957a0ddc7010d46b3ea3ddc8b9852bc8333 (patch) | |
| tree | f6caefe939109e55a73e9141c736d2f6c20f51e8 /examples/std/src/bin/tcp_accept.rs | |
| parent | 7559f9e5834799b041d899767ef4305dcfdf0181 (diff) | |
time: Update examples, tests, and other code to use new Timer::after_x convenience methods
Diffstat (limited to 'examples/std/src/bin/tcp_accept.rs')
| -rw-r--r-- | examples/std/src/bin/tcp_accept.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/std/src/bin/tcp_accept.rs b/examples/std/src/bin/tcp_accept.rs index 199e4c9ec..79fa375cd 100644 --- a/examples/std/src/bin/tcp_accept.rs +++ b/examples/std/src/bin/tcp_accept.rs | |||
| @@ -100,7 +100,7 @@ async fn main_task(spawner: Spawner) { | |||
| 100 | return; | 100 | return; |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | Timer::after(Duration::from_millis(500)).await; | 103 | Timer::after_millis(500).await; |
| 104 | } | 104 | } |
| 105 | info!("Closing the connection"); | 105 | info!("Closing the connection"); |
| 106 | socket.abort(); | 106 | socket.abort(); |
