File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -714,6 +714,15 @@ impl<T: GodotClass> Gd<T> {
714
714
} ) ;
715
715
callable. call_deferred ( & [ ] ) ;
716
716
}
717
+
718
+ #[ deprecated = "Split into `run_deferred()` + `run_deferred_gd()`." ]
719
+ pub fn apply_deferred < F > ( & mut self , rust_function : F )
720
+ where
721
+ T : WithBaseField ,
722
+ F : FnOnce ( & mut T ) + ' static ,
723
+ {
724
+ self . run_deferred ( rust_function)
725
+ }
717
726
}
718
727
719
728
/// _The methods in this impl block are only available for objects `T` that are manually managed,
Original file line number Diff line number Diff line change @@ -550,6 +550,14 @@ pub trait WithBaseField: GodotClass + Bounds<Declarer = bounds::DeclUser> {
550
550
{
551
551
self . to_gd ( ) . run_deferred_gd ( gd_function)
552
552
}
553
+
554
+ #[ deprecated = "Split into `run_deferred()` + `run_deferred_gd()`." ]
555
+ fn apply_deferred < F > ( & mut self , rust_function : F )
556
+ where
557
+ F : FnOnce ( & mut Self ) + ' static ,
558
+ {
559
+ self . run_deferred ( rust_function)
560
+ }
553
561
}
554
562
555
563
/// Implemented for all classes with registered signals, both engine- and user-declared.
You can’t perform that action at this time.
0 commit comments