1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-02-22 04:03:17 +01:00

clarify tokio::main docs

This commit is contained in:
Rob Ede 2022-09-26 12:29:57 +01:00 committed by GitHub
parent cc7145d41d
commit 1519ae7772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
//! //!