mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
task: fix incorrect signature in Builder::spawn_on (#4953)
This commit is contained in:
@@ -99,11 +99,7 @@ impl<'a> Builder<'a> {
|
|||||||
/// [runtime handle]: crate::runtime::Handle
|
/// [runtime handle]: crate::runtime::Handle
|
||||||
/// [`Handle::spawn`]: crate::runtime::Handle::spawn
|
/// [`Handle::spawn`]: crate::runtime::Handle::spawn
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn spawn_on<Fut>(
|
pub fn spawn_on<Fut>(self, future: Fut, handle: &Handle) -> io::Result<JoinHandle<Fut::Output>>
|
||||||
&mut self,
|
|
||||||
future: Fut,
|
|
||||||
handle: &Handle,
|
|
||||||
) -> io::Result<JoinHandle<Fut::Output>>
|
|
||||||
where
|
where
|
||||||
Fut: Future + Send + 'static,
|
Fut: Future + Send + 'static,
|
||||||
Fut::Output: Send + 'static,
|
Fut::Output: Send + 'static,
|
||||||
|
|||||||
Reference in New Issue
Block a user