mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
task: fix task module feature flags in docs (#7891)
This commit is contained in:
@@ -549,6 +549,11 @@ cfg_not_sync! {
|
|||||||
mod sync;
|
mod sync;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Currently, task module does not expose any public API outside `rt`
|
||||||
|
// feature, so we mark it in the docs. This happens only to docs to
|
||||||
|
// avoid introducing breaking changes by restricting the visibility
|
||||||
|
// of the task module.
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "rt")))]
|
||||||
pub mod task;
|
pub mod task;
|
||||||
cfg_rt! {
|
cfg_rt! {
|
||||||
pub use task::spawn;
|
pub use task::spawn;
|
||||||
|
|||||||
Reference in New Issue
Block a user