fix formatting

This commit is contained in:
Evan Almloff committed 2024-03-04 12:04:09 -06:00
1 parent a14e5be7ad
commit 78b9b157dc
7 files changed
+40 -24

No files matched your search

+3 -1
View File
@@ -260,7 +260,9 @@ pub fn after_render(f: impl FnMut() + 'static) {
pub async fn flush_sync() {
// Wait for the flush lock to be available
// We release it immediately, so it's impossible for the lock to be held longer than this function
Runtime::with(|rt| rt.render_signal.subscribe()).unwrap().await;
Runtime::with(|rt| rt.render_signal.subscribe())
.unwrap()
.await;
}
/// Use a hook with a cleanup function