Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 10
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
Call std::process::exit immediately
C
Kill threads with signals
D
Drop the runtime and hope tasks finish