Advanced
Rust
Q68 / 100
What is async cancellation in Rust and why is it unique?
Correct! Well done.
Incorrect.
The correct answer is B) Dropping a future cancels it — any awaited work is abandoned. This is synchronous and immediate but requires care for cleanup (select! cancellation safety)
B
Correct Answer
Dropping a future cancels it — any awaited work is abandoned. This is synchronous and immediate but requires care for cleanup (select! cancellation safety)
Explanation
In Rust async, dropping a future stops it without any explicit cancel API. This is efficient but requires careful design around cancellation safety (e.g., don't cancel mid-transaction).
Progress
68/100