Created
March 17, 2018 19:16
-
-
Save Kelin2025/4f11656fd79a0a2b0dca95d5e8a79a2d to your computer and use it in GitHub Desktop.
Apicase cancellation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const req = doRequest({ url: '/api/posts' }) | |
req.on('cancel', console.log) | |
req.cancel() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment