mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
runtime: add doc link from Runtime
to #[tokio::main]
(#6366)
This commit is contained in:
parent
a2096049ee
commit
5658d7c503
@ -21,8 +21,8 @@ cfg_rt_multi_thread! {
|
|||||||
/// blocking pool, necessary for running asynchronous tasks.
|
/// blocking pool, necessary for running asynchronous tasks.
|
||||||
///
|
///
|
||||||
/// Instances of `Runtime` can be created using [`new`], or [`Builder`].
|
/// Instances of `Runtime` can be created using [`new`], or [`Builder`].
|
||||||
/// However, most users will use the `#[tokio::main]` annotation on their
|
/// However, most users will use the [`#[tokio::main]`][main] annotation on
|
||||||
/// entry point instead.
|
/// their entry point instead.
|
||||||
///
|
///
|
||||||
/// See [module level][mod] documentation for more details.
|
/// See [module level][mod] documentation for more details.
|
||||||
///
|
///
|
||||||
@ -86,6 +86,7 @@ cfg_rt_multi_thread! {
|
|||||||
/// [`new`]: method@Self::new
|
/// [`new`]: method@Self::new
|
||||||
/// [`Builder`]: struct@Builder
|
/// [`Builder`]: struct@Builder
|
||||||
/// [`Handle`]: struct@Handle
|
/// [`Handle`]: struct@Handle
|
||||||
|
/// [main]: macro@crate::main
|
||||||
/// [`tokio::spawn`]: crate::spawn
|
/// [`tokio::spawn`]: crate::spawn
|
||||||
/// [`Arc::try_unwrap`]: std::sync::Arc::try_unwrap
|
/// [`Arc::try_unwrap`]: std::sync::Arc::try_unwrap
|
||||||
/// [Arc]: std::sync::Arc
|
/// [Arc]: std::sync::Arc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user