Created
June 19, 2019 19:18
-
-
Save marr/163c7a03d75e404a15f459846d5b2f2d to your computer and use it in GitHub Desktop.
This file contains 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 controller = new AbortController() | |
const signal = controller.signal | |
setTimeout(() => { | |
controller.abort() | |
}, 1000) | |
fetch(url, { signal }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment