Sha256: a0fae6014751dc95f45b1dbe530b7f4db99d5bd607ed8bbf879b22a906f4514c

Contents?: true

Size: 653 Bytes

Versions: 7

Compression:

Stored size: 653 Bytes

Contents

@since(version = 0.2.0)
interface exit {
  /// Exit the current instance and any linked instances.
  @since(version = 0.2.0)
  exit: func(status: result);

  /// Exit the current instance and any linked instances, reporting the
  /// specified status code to the host.
  ///
  /// The meaning of the code depends on the context, with 0 usually meaning
  /// "success", and other values indicating various types of failure.
  ///
  /// This function does not return; the effect is analogous to a trap, but
  /// without the connotation that something bad has happened.
  @unstable(feature = cli-exit-with-code)
  exit-with-code: func(status-code: u8);
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/wasmtime-wasi-29.0.0/wit/deps/cli/exit.wit
wasmtime-28.0.0 ./ext/cargo-vendor/wasmtime-wasi-28.0.0/wit/deps/cli/exit.wit
wasmtime-27.0.0 ./ext/cargo-vendor/wasmtime-wasi-27.0.0/wit/deps/cli/exit.wit
wasmtime-26.0.0 ./ext/cargo-vendor/wasmtime-wasi-26.0.0/wit/deps/cli/exit.wit
wasmtime-25.0.2 ./ext/cargo-vendor/wasmtime-wasi-25.0.2/wit/deps/cli/exit.wit
wasmtime-25.0.1 ./ext/cargo-vendor/wasmtime-wasi-25.0.1/wit/deps/cli/exit.wit
wasmtime-25.0.0 ./ext/cargo-vendor/wasmtime-wasi-25.0.0/wit/deps/cli/exit.wit