Consider this Node 8.10 code:
exports.handler = async (event, context, callback) => { setTimeout(() => callback(null, "resolved"), 100) }; When I run it the response is null. When I remove the async keyword from the handler the response is "resolved" as expected.
Can anyone explain this behavior? How is the async function executed in a Lambda container and what is the difference in a "normal" function?
nulland notundefined?Response: null. But even if it wasundefined, the question is what is the difference in the execution?