mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
task: fix warning (#4960)
This commit is contained in:
parent
adc774bc4f
commit
01ebb0aa29
@ -439,7 +439,7 @@ impl<'a, T: 'static> Builder<'a, T> {
|
|||||||
/// [`AbortHandle`]: crate::task::AbortHandle
|
/// [`AbortHandle`]: crate::task::AbortHandle
|
||||||
/// [runtime handle]: crate::runtime::Handle
|
/// [runtime handle]: crate::runtime::Handle
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn spawn_on<F>(mut self, future: F, handle: &Handle) -> std::io::Result<AbortHandle>
|
pub fn spawn_on<F>(self, future: F, handle: &Handle) -> std::io::Result<AbortHandle>
|
||||||
where
|
where
|
||||||
F: Future<Output = T>,
|
F: Future<Output = T>,
|
||||||
F: Send + 'static,
|
F: Send + 'static,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user