Function rt_local::wait_for_idle

source ·
pub async fn wait_for_idle() -> impl Future<Output = ()>
Expand description

Wait until there are no more operations to be performed now on the current thread.

The “operations to be performed now” include not only tasks spawned by spawn_local, but also events handled by the runtime backend.