Skip to content

Commit

Permalink
Add note about required feature for start_paused (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
barafael authored Feb 25, 2025
1 parent cb9b7f4 commit ec2ebb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/tokio/topics/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async fn paused_time() {
}
```

Keep in mind that the `start_paused` attribute requires the tokio feature `test-util`.
See [tokio::test "Configure the runtime to start with time paused"](https://docs.rs/tokio/latest/tokio/attr.test.html#configure-the-runtime-to-start-with-time-paused) for more details.

Of course, the temporal order of future resolution is maintained, even when
Expand Down

0 comments on commit ec2ebb3

Please sign in to comment.