Skip to content

Commit ec2ebb3

Browse files
authored
Add note about required feature for start_paused (#815)
1 parent cb9b7f4 commit ec2ebb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/tokio/topics/testing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ async fn paused_time() {
4141
}
4242
```
4343

44+
Keep in mind that the `start_paused` attribute requires the tokio feature `test-util`.
4445
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.
4546

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

0 commit comments

Comments
 (0)