mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
reexport tick()
for testing
This commit is contained in:
parent
ca68fa5a3d
commit
5f49504137
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue