NiteruxN
Denoβ€’14mo agoβ€’
3 replies
Niterux

How do I make Deno run code when it is closed out on Windows

According to the documentation there is Deno.addSignalListener but it only handles on Windows when you use CTRL+C or CTRL+BREAK, how do I make it handle all possible closes like Deno.exit or closing it from the task bar?
Was this page helpful?