Return a Function to Cancel an Async Behavior

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Cancelation is huge part of async code, but again, APIs in JavaScript are inconsistent. We can develop our own pattern to allow us full control over how cancelation behaves so that our functions can work together.