pascalav
pascalav
DDeno
Created by pascalav on 9/13/2023 in #help
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
DDeno
Created by pascalav on 9/13/2023 in #help
How to handle a user abort by Deno.serve
Formatting of the code has worked. Thanks for the hint.
9 replies