From 6b698ae869e93dd4adcbbc45a11eb1f09899c9e6 Mon Sep 17 00:00:00 2001 From: soruh Date: Sat, 18 Mar 2023 17:48:11 +0100 Subject: [PATCH] track tokio task spawn caller --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 770c835..0b2c832 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,7 +93,7 @@ impl Config { } #[cfg(not(feature = "tokio_console"))] - +#[track_caller] fn spawn( _name: &str, future: impl Future + Send + 'static, @@ -102,6 +102,7 @@ fn spawn( } #[cfg(feature = "tokio_console")] +#[track_caller] fn spawn( name: &str, future: impl Future + Send + 'static,