deno / 1.23.2 / ~ / deno.exit.html /

Deno.exit

Exit the Deno process with optional exit code. If no exit code is supplied then Deno will exit with return code of 0.

In worker contexts this is an alias to self.close();.

Deno.exit(5);
function exit( code?: number) : never;
exit( code?: number) : never

Parameters

code?: number optional

Return Type

never

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.exit