Function aws_smithy_async::test_util::controlled_time_and_sleep
source ยท pub fn controlled_time_and_sleep(
start_time: SystemTime,
) -> (ManualTimeSource, ControlledSleep, SleepGate)
Available on crate feature
test-util
only.Expand description
Returns a trio of tools to test interactions with time
ManualTimeSource
which starts at a specific time and only advances whensleep
is called. It MUST be paired withControlledSleep
in order to function.