From 3e9023b131a6f5afd76464fd400daca7e4737b6d Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Wed, 9 Mar 2022 10:22:12 -0500 Subject: [PATCH] docs: finish async --- docs/guide/src/SUMMARY.md | 6 +- docs/guide/src/async/coroutines.md | 160 ++++++++++++++++++++++++++++ docs/guide/src/async/fetching.md | 2 - docs/guide/src/async/use_future.md | 84 +++++++++++++++ docs/guide/src/state/router.md | 2 +- docs/guide/src/state/sharedstate.md | 64 ++++++++++- packages/hooks/src/usecoroutine.rs | 2 +- 7 files changed, 310 insertions(+), 10 deletions(-) diff --git a/docs/guide/src/SUMMARY.md b/docs/guide/src/SUMMARY.md index 876fe13e7..8060bbe0b 100644 --- a/docs/guide/src/SUMMARY.md +++ b/docs/guide/src/SUMMARY.md @@ -30,11 +30,11 @@ - [Fermi](state/fermi.md) - [Router](state/router.md) - [Working with Async](async/index.md) - - [Updating State](async/loading_state.md) - - [Fetching](async/fetching.md) - [UseFuture](async/use_future.md) - [UseCoroutine](async/coroutines.md) - - [WebSockets](async/sockets.md) + + + + diff --git a/packages/hooks/src/usecoroutine.rs b/packages/hooks/src/usecoroutine.rs index 65a3ff52d..55161f149 100644 --- a/packages/hooks/src/usecoroutine.rs +++ b/packages/hooks/src/usecoroutine.rs @@ -36,7 +36,7 @@ use std::future::Future; /// /// ## Example /// -/// ```rust, ignore +/// ```rust /// enum Action { /// Start, /// Stop,