Skip to content
Sharp

Concurrency · interview question

A teammate submits shaky cancellation code. Which review comment is the strongest?

Multiple choiceMediumchapter-15-curatedpremiumconcurrencycancellation
Choose one answer
Answer and explanation

Correct answer

B. Make the rule clearer and easier to explain. Make cancellation behavior explicit so tasks stop cleanly and partial work is understood.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. Ignoring cancellation leaves stray work running after the caller has already moved on.

Test yourself on Concurrency

A free test with instant, explained results. No account needed.

Start free test
All Concurrency questions →