reexport tick() for testing

This commit is contained in:
Greg Johnston 2024-06-10 21:12:51 -04:00
parent ca68fa5a3d
commit 5f49504137

View file

@ -284,11 +284,7 @@ pub mod spawn {
}
pub async fn tick() {
let (tx, rx) = futures::channel::oneshot::channel();
any_spawner::Executor::spawn_local(async move {
_ = tx.send(());
});
_ = rx.await;
Executor::tick().await
}
}