mirror of
https://github.com/actix/actix-web.git
synced 2024-12-01 22:11:20 +00:00
clarify tokio::main docs
This commit is contained in:
parent
cc7145d41d
commit
1519ae7772
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! # Running Actix Web Using `#[tokio::main]`
|
//! # 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
|
//! 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.
|
//! from [`HttpServer::run`](crate::HttpServer::run) can also be [`spawn`]ed, if preferred.
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in a new issue