Skip to content

Instantly share code, notes, and snippets.

@mobsense
Created September 8, 2020 03:13
Show Gist options
  • Save mobsense/d3a9ccd53e59202dff3128c19778d774 to your computer and use it in GitHub Desktop.
Save mobsense/d3a9ccd53e59202dff3128c19778d774 to your computer and use it in GitHub Desktop.
Naively calling sleep in Lambda
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