zksync_concurrency::testonly

Function set_timeout

source
pub fn set_timeout(timeout: Duration) -> TimeoutGuard
Expand description

Panics if (real time) timeout is reached before ctx is canceled. Implemented without using tokio, so that it cannot delay the timeout evaluation.