Merge branch 'master' into jk/documet-everything

This commit is contained in:
Jonathan Kelley committed 2022-02-26 17:33:06 -05:00
commit 77631bff1f
34 files changed
+891 -81

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
#![allow(missing_docs)]
use dioxus_core::{ScopeState, TaskId};
use std::{cell::Cell, future::Future, rc::Rc};
use std::{cell::Cell, future::Future, rc::Rc, sync::Arc};
/// A future that resolves to a value.
///
@@ -61,7 +61,7 @@ pub enum FutureState<'a, T> {
}
pub struct UseFuture<T> {
update: Rc<dyn Fn()>,
update: Arc<dyn Fn()>,
needs_regen: Cell<bool>,
value: Option<T>,
pending: bool,