Documentation on Handlers returning Promises #1189
-
Many function handlers expect us to return either nothing or a Promise: Should we return a Promise that resolves once we've responded to the client? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No
No
Yes
No, that's not right. |
Beta Was this translation helpful? Give feedback.
No
No
Yes
No, that's not right.
async function
seemingly returningvoid
actually returnsPromise<void>
so we need to accept both signatures