Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Fix async and callback combo handling #166

Merged
merged 3 commits into from
Apr 25, 2019

Conversation

swyxio
Copy link
Contributor

@swyxio swyxio commented Apr 25, 2019

- Summary

closes #165
closes #142

- Description for the changelog

better dx when writing bad functions

better dx when reloading functions

- A picture of a cute animal (not mandatory but encouraged)

😻

@swyxio swyxio merged commit 1f37157 into master Apr 25, 2019
@swyxio swyxio deleted the fixAsyncANDCallbackComboHandling branch April 25, 2019 06:45
const callback = createCallback(response);
const promise = handler.handler(
lambdaRequest,
{ clientContext: buildClientContext(request.headers) || {} },
callback
);
promiseCallback(promise, callback);
/** guard against using BOTH async and callback */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍


promise.then(
function(data) {
console.log("hellooo");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants