pascalav
How to handle a user abort by Deno.serve
try ... catch doesn't work, because await req.formData() doesn't trigger it.
Yes, I know. The AbortSignal abort the server itself. The reason I added it, for example, was that Ctrl + C terminates the server, but then some process is still running in Deno. And only if req.formData() is terminated normally, no process is running in Deno afterwards.
So unfortunately the bot does not help here 😦
9 replies