mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
task: update JoinHandle panic message (#3727)
This commit is contained in:
parent
0ba1e3c3e1
commit
73466f4b6c
@ -279,7 +279,7 @@ impl<T: Future> CoreStage<T> {
|
|||||||
// Safety:: the caller ensures mutal exclusion to the field.
|
// Safety:: the caller ensures mutal exclusion to the field.
|
||||||
match mem::replace(unsafe { &mut *ptr }, Stage::Consumed) {
|
match mem::replace(unsafe { &mut *ptr }, Stage::Consumed) {
|
||||||
Stage::Finished(output) => output,
|
Stage::Finished(output) => output,
|
||||||
_ => panic!("unexpected task state"),
|
_ => panic!("JoinHandle polled after completion"),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user