Fix cargo check on examples

This commit is contained in:
Jonathan Kelley committed 2024-01-30 17:59:57 -08:00
1 parent 0bd9692e45
commit a72c035de4
42 files changed
+95 -145

No files matched your search

+3 -4
View File
@@ -42,6 +42,7 @@ where
UseFuture { task, state }
}
#[allow(unused)]
pub struct UseFuture {
task: CopyValue<Task>,
state: Signal<UseFutureState>,
@@ -58,10 +59,8 @@ impl UseFuture {
}
/// Forcefully cancel a future
pub fn cancel(&self) {
// if let Some(task) = self.task.take() {
// cx.remove_future(task);
// }
pub fn cancel(&mut self) {
self.task.write().stop();
}
/// Get the ID of the future in Dioxus' internal scheduler