Created
September 23, 2021 07:58
-
-
Save kt3k/0a6825ca2aa665d9a5ac0dbe40c44512 to your computer and use it in GitHub Desktop.
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
addEventListener("fetch", (event) => { | |
const x = event.respondWith(new Promise((resolve) => { | |
setTimeout(() => { | |
resolve(new Response(`${typeof x} ${x.constructor.name}`)); | |
}, 300); | |
})); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment