mirror of
https://github.com/fafhrd91/actix-web
synced 2025-02-21 11:54:47 +01:00
clarify tokio::main docs
This commit is contained in:
parent
cc7145d41d
commit
1519ae7772
@ -25,7 +25,7 @@
|
||||
//! ```
|
||||
//!
|
||||
//! # Running Actix Web Using `#[tokio::main]`
|
||||
//! If you need to run something alongside Actix Web that uses Tokio's work stealing functionality,
|
||||
//! If you need to run something that uses Tokio's work stealing functionality alongside Actix Web,
|
||||
//! you can run Actix Web under `#[tokio::main]`. The [`Server`](crate::dev::Server) object returned
|
||||
//! from [`HttpServer::run`](crate::HttpServer::run) can also be [`spawn`]ed, if preferred.
|
||||
//!
|
||||
|
Loading…
x
Reference in New Issue
Block a user