We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 287985e commit 6502b5fCopy full SHA for 6502b5f
src/runtime.rs
@@ -54,6 +54,7 @@ pub(crate) use tls::TlsConfig;
54
///
55
/// This must be called from an async block
56
/// or function running on a runtime.
57
+#[track_caller]
58
pub(crate) fn spawn<F, O>(fut: F) -> AsyncJoinHandle<O>
59
where
60
F: Future<Output = O> + Send + 'static,
src/runtime/join_handle.rs
@@ -9,6 +9,7 @@ use std::{
9
pub(crate) struct AsyncJoinHandle<T>(tokio::task::JoinHandle<T>);
10
11
impl<T> AsyncJoinHandle<T> {
12
+ #[track_caller]
13
pub(crate) fn spawn<F>(fut: F) -> Self
14
15
F: Future<Output = T> + Send + 'static,
0 commit comments