fn exit
Terminates the process with code (output is flushed).
Example:
use std.os { exit }
fn main() io {
print("fatal: no configuration")
exit(0)
}Output
fatal: no configuration
@intrinsic("os.exit") pub(api) fn exit(code: i32) -> never ioSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
code | i32 |
Returns
never
Effects
io
Defined in: std/os/os.oxl:46