mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
formatting
This commit is contained in:
parent
a9a54ac4c6
commit
022f9800ed
@ -180,10 +180,10 @@ where
|
||||
///
|
||||
/// **Note**: http server accepts an application factory rather than
|
||||
/// an application instance. Http server constructs an application
|
||||
/// instance for each thread, thus application state must be constructed multiple
|
||||
/// times. If you want to share state between different threads, a
|
||||
/// shared object should be used, e.g. `Arc`. Application state does not
|
||||
/// need to be `Send` and `Sync`.
|
||||
/// instance for each thread, thus application state must be constructed
|
||||
/// multiple times. If you want to share state between different
|
||||
/// threads, a shared object should be used, e.g. `Arc`. Application
|
||||
/// state does not need to be `Send` and `Sync`.
|
||||
pub fn with_state(state: S) -> App<S> {
|
||||
App {
|
||||
parts: Some(ApplicationParts {
|
||||
|
Loading…
Reference in New Issue
Block a user