File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ impl MainContext {
580
580
/// The given `Future` does not have to be `Send` but the closure to spawn it has to be.
581
581
///
582
582
/// This can be called only from any thread.
583
- pub fn spawn_from_within < R : ' static , F : Future < Output = R > + ' static > (
583
+ pub fn spawn_from_within < R : Send + ' static , F : Future < Output = R > + ' static > (
584
584
& self ,
585
585
func : impl FnOnce ( ) -> F + Send + ' static ,
586
586
) -> SpawnWithinJoinHandle < R > {
@@ -593,7 +593,7 @@ impl MainContext {
593
593
/// The given `Future` does not have to be `Send` but the closure to spawn it has to be.
594
594
///
595
595
/// This can be called only from any thread.
596
- pub fn spawn_from_within_with_priority < R : ' static , F : Future < Output = R > + ' static > (
596
+ pub fn spawn_from_within_with_priority < R : Send + ' static , F : Future < Output = R > + ' static > (
597
597
& self ,
598
598
priority : Priority ,
599
599
func : impl FnOnce ( ) -> F + Send + ' static ,
You can’t perform that action at this time.
0 commit comments