zng_env

Function exit

source
pub fn exit(code: i32) -> !
Expand description

Terminates the current process with the specified exit code.

This function must be used instead of std::process::exit as it runs the on_process_exit.