From ec2ebb3ae395129c1a185edc660dc9900fb75b44 Mon Sep 17 00:00:00 2001 From: Rafael Bachmann Date: Tue, 25 Feb 2025 13:01:13 +0100 Subject: [PATCH] Add note about required feature for `start_paused` (#815) --- content/tokio/topics/testing.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/tokio/topics/testing.md b/content/tokio/topics/testing.md index c58b39c4..58797f89 100644 --- a/content/tokio/topics/testing.md +++ b/content/tokio/topics/testing.md @@ -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