feat: more suspended nodes!
This commit is contained in:
1 parent
c52af221f7
commit
de9f61bcf4
20 files changed
+644
-148
No files matched your search
+5
-7
@@ -17,13 +17,11 @@ for more general tasks, we need some way of submitting a future or task into som
|
||||
|
||||
```rust
|
||||
|
||||
let task = use_hook(|| {
|
||||
// create the future
|
||||
}, || {
|
||||
update the future if it needs to be updated
|
||||
}, || {
|
||||
|
||||
});
|
||||
let task = use_hook(
|
||||
|| { /* */ },
|
||||
|| { /* update the future if it needs to be updated */ },
|
||||
|| {}
|
||||
);
|
||||
cx.poll_future()
|
||||
// let recoil_event_loop = cx.use_task(move |_| async move {
|
||||
// loop {
|
||||
|
||||
Reference in new issue
Block a user