From 6df013f8ec55de974b028dd5f7c36a1d9506cbc2 Mon Sep 17 00:00:00 2001 From: Steven Yap Date: Sun, 17 Apr 2022 15:21:55 +0800 Subject: [PATCH] Update extractors.md (#268) --- content/docs/extractors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/extractors.md b/content/docs/extractors.md index 177b002..6df2c7f 100644 --- a/content/docs/extractors.md +++ b/content/docs/extractors.md @@ -78,7 +78,7 @@ Although this handler will work, `data.count` will only count the number of requ **Note**: If you want the _entire_ state to be shared across all threads, use `web::Data` and `app_data` as described in [Shared Mutable State][shared_mutable_state]. -Be careful when using blocking synchronization primitives like `Mutex` or `RwLock` within your app state. Actix Web handles requests asynchronously. It is a problem if the [_critical section_](critical_section) in your handler is too big or contains an `.await` point. If this is a concern, we would avise you also read [Tokio's advice on using blocking `Mutex` in async code](tokio_std_mutex). +Be careful when using blocking synchronization primitives like `Mutex` or `RwLock` within your app state. Actix Web handles requests asynchronously. It is a problem if the [_critical section_](critical_section) in your handler is too big or contains an `.await` point. If this is a concern, we would advise you to also read [Tokio's advice on using blocking `Mutex` in async code](tokio_std_mutex). [pathstruct]: https://docs.rs/actix-web/4/actix_web/dev/struct.Path.html [querystruct]: https://docs.rs/actix-web/4/actix_web/web/struct.Query.html