| 1 |
@since(version = 0.2.0) |
| 2 |
interface exit { |
| 3 |
/// Exit the current instance and any linked instances. |
| 4 |
@since(version = 0.2.0) |
| 5 |
exit: func(status: result); |
| 6 |
|
| 7 |
/// Exit the current instance and any linked instances, reporting the |
| 8 |
/// specified status code to the host. |
| 9 |
/// |
| 10 |
/// The meaning of the code depends on the context, with 0 usually meaning |
| 11 |
/// "success", and other values indicating various types of failure. |
| 12 |
/// |
| 13 |
/// This function does not return; the effect is analogous to a trap, but |
| 14 |
/// without the connotation that something bad has happened. |
| 15 |
@unstable(feature = cli-exit-with-code) |
| 16 |
exit-with-code: func(status-code: u8); |
| 17 |
} |