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
ManualTimeSourcewhich starts at a specific time and only advances whensleepis called. It MUST be paired withControlledSleepin order to function.