Created
May 24, 2019 11:20
-
-
Save kobalski/a4c4dddabf57ab31c8c5f5a98bfca272 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 thundra = require("@thundra/core")(); | |
exports.handler_blocking = thundra((event, context, callback) => { | |
setTimeout(function () { | |
callback(null, {msg: event}); | |
}, 5000); | |
while (true); | |
}); | |
exports.handler_non_blocking = thundra((event, context, callback) => { | |
setTimeout(function () { | |
callback(null, {msg: event}); | |
}, 5000); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment