fn exit
Terminates the process with code (output is flushed).
Example:
use std.os { exit }
fn main() io {
print("fatal: no configuration")
exit(0)
}Вывод
fatal: no configuration
@intrinsic("os.exit") pub(api) fn exit(code: i32) -> never ioС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
code | i32 |
Возвращает
never
Эффекты
io
Определено в: std/os/os.oxl:46