Problem 2715 · Easy

Timeout Cancellation

Schedule a callback after a delay and return a cancel function; if cancel runs first the callback never fires, otherwise it fires on time.

Open the interactive visualisation