Add #[track_caller] to all spawns so that tokio-console works (if enabled)
This commit is contained in:
parent
edba359400
commit
d6b1c47d45
4 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
/// Spawn a future inside a tracing span, while logging it's start,
|
||||
/// finish and periodically logging if it's still alive.
|
||||
#[track_caller]
|
||||
pub fn spawn(
|
||||
_name: &str,
|
||||
span: tracing::Span,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue