79340605

Date: 2025-01-08 20:01:29
Score: 1.5
Natty:
Report link

The documentation describes this as "undefined behavior":

Your function must send an HTTP response. If the function creates background tasks (such as with threads, futures, JavaScript Promise objects, callbacks, or system processes), you must terminate or otherwise resolve these tasks before sending an HTTP response. Any tasks not terminated before the HTTP response is sent might not be completed, and might cause undefined behavior.

So this sort of pattern may simply not be possible.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jess The Witch