T11b loading: progress bars and rings that glide, loading overlay, lazy load, suspense and async view, refresh and typing indicators, upload list; draw-time notifies ask for a frame
This commit is contained in:
38 files changed
+1646
-91
No files matched your search
@@ -20,7 +20,7 @@ use crate::{
|
||||
};
|
||||
|
||||
/// Sets `state` to `value` after `wait`, as a slow server would answer.
|
||||
fn later<T: 'static>(state: &Entity<T>, value: T, wait: Duration, cx: &mut App) {
|
||||
pub fn later<T: 'static>(state: &Entity<T>, value: T, wait: Duration, cx: &mut App) {
|
||||
let state = state.clone();
|
||||
cx.spawn(async move |cx| {
|
||||
cx.background_executor().timer(wait).await;
|
||||
|
||||
Reference in new issue
Block a user