Created
September 8, 2020 03:13
-
-
Save mobsense/d3a9ccd53e59202dff3128c19778d774 to your computer and use it in GitHub Desktop.
Naively calling sleep in Lambda
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
exports.handler = async (event, context) { | |
/* nowait */ request('https://example.com', metrics) | |
await sleep(100) | |
return 'done' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment