Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 590
What is a common way to implement graceful shutdown across many Tokio tasks?
A
A CancellationToken (tokio-util) or watch channel that tasks select! on, plus a JoinSet/TaskTracker to await their completion
B
Drop the runtime and hope tasks finish
C
Call std::process::exit immediately
D
Kill threads with signals