/tokio-graceful-spawn-broken-guard

Standalone Reproduction of broken guard when using tokio-graceful

Primary LanguageRust

Issue is when the guard is upgraded in a spawned task

cargo run

produces :

Doing work
Ok(8.147µs)

expected :

Doing work
Work done
Ok(1.s)

The issue was a misunderstanding of how to use this library.

cargo run --bin working