@@ -706,6 +706,12 @@ impl Builder {
706
706
///
707
707
/// This *does not* support [`LocalSet`](crate::task::LocalSet) at this time.
708
708
///
709
+ /// **Note**: This is an [unstable API][unstable]. The public API of this type
710
+ /// may break in 1.x releases. See [the documentation on unstable
711
+ /// features][unstable] for details.
712
+ ///
713
+ /// [unstable]: crate#unstable-features
714
+ ///
709
715
/// # Examples
710
716
///
711
717
/// ```
@@ -728,6 +734,7 @@ impl Builder {
728
734
/// # }
729
735
/// ```
730
736
#[ cfg( all( not( loom) , tokio_unstable) ) ]
737
+ #[ cfg_attr( docsrs, doc( cfg( tokio_unstable) ) ) ]
731
738
pub fn on_task_spawn < F > ( & mut self , f : F ) -> & mut Self
732
739
where
733
740
F : Fn ( & TaskMeta < ' _ > ) + Send + Sync + ' static ,
@@ -748,6 +755,12 @@ impl Builder {
748
755
///
749
756
/// This *does not* support [`LocalSet`](crate::task::LocalSet) at this time.
750
757
///
758
+ /// **Note**: This is an [unstable API][unstable]. The public API of this type
759
+ /// may break in 1.x releases. See [the documentation on unstable
760
+ /// features][unstable] for details.
761
+ ///
762
+ /// [unstable]: crate#unstable-features
763
+ ///
751
764
/// # Examples
752
765
///
753
766
/// ```
@@ -770,6 +783,7 @@ impl Builder {
770
783
/// # }
771
784
/// ```
772
785
#[ cfg( all( not( loom) , tokio_unstable) ) ]
786
+ #[ cfg_attr( docsrs, doc( cfg( tokio_unstable) ) ) ]
773
787
pub fn on_task_terminate < F > ( & mut self , f : F ) -> & mut Self
774
788
where
775
789
F : Fn ( & TaskMeta < ' _ > ) + Send + Sync + ' static ,
0 commit comments