Hi.
is it possible for the netlify edge function to do further tasks after sending response to the client. like writing data to a database.
following is the vercel edge function example which has “request”, “event” parameters. which work perfectly. any code inside the event.waitUntil is executed after sending the response.
but Netlify edge function takes two parameters “request” and “context”. there is no event parameter. how can i use ExtendableEvent.waitUntil() or is there any other way.
This practice is used in many places when you want to do an operation that is irrelevant to the response so you can respond a bit faster to the client.
The problem I think is that in an edge function once you return a response you can’t execute anymore anything else.