Drive a top-level future to completion on the simulation executor. While the future runs, spawned tasks share the same deterministic scheduler, timer wheel, and runtime RNG.
(&mut self, future: F)
| 150 | /// While the future runs, spawned tasks share the same deterministic |
| 151 | /// scheduler, timer wheel, and runtime RNG. |
| 152 | pub fn block_on<F: Future>(&mut self, future: F) -> F::Output { |
| 153 | self.executor.block_on(future) |
| 154 | } |
| 155 | |
| 156 | /// Return the amount of virtual time elapsed in this runtime. |
| 157 | pub fn elapsed(&self) -> Duration { |