Co-Authored-By: Max <max@zed.dev>
Co-Authored-By: Conrad <conrad.irwin@gmail.com>
Co-Authored-By: Kyle <kyle@zed.dev>
This commit is contained in:
Antonio Scandurra 2023-10-25 19:17:50 +02:00
parent 9986e526e5
commit 412c0ff7dc
9 changed files with 1810 additions and 10 deletions

View file

@ -207,8 +207,8 @@ impl Executor {
}
#[cfg(any(test, feature = "test-support"))]
pub async fn simulate_random_delay(&self) {
todo!("simulate_random_delay")
pub fn simulate_random_delay(&self) -> impl Future<Output = ()> {
self.dispatcher.as_test().unwrap().simulate_random_delay()
}
pub fn num_cpus(&self) -> usize {