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