callbacks
Design cancellable asynchronous callbacks
Asynchronous callbacks are when you pass a callback to an async function, so you don't control when it will be called. In the meantime, many things may have changed and the callback is now stale and s...