1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

Actix Web

This commit is contained in:
Rob Ede
2022-02-06 08:13:24 +00:00
parent 120d33057a
commit 8ae47c8cda
16 changed files with 26 additions and 29 deletions

View File

@ -10,7 +10,7 @@
//!
//! We retrieve our app state within our handlers with a `state: Data<...>` argument.
//!
//! By default, `actix-web` runs one [`App`] per logical cpu core.
//! By default, Actix Web runs one [`App`] per logical cpu core.
//! When running on `<N>` cores, we see that the example will increment `counter_mutex` (global state via
//! Mutex) and `counter_atomic` (global state via Atomic variable) each time the endpoint is called,
//! but only appear to increment `counter_cell` every Nth time on average (thread-local state). This