UnixInstance
Defined in: packages/core/src/kernel/types.ts:1159
The handle returned by Unix().
Properties
Section titled “Properties”kernel
Section titled “kernel”
readonlykernel:Kernel
Defined in: packages/core/src/kernel/types.ts:1176
Access kernel for inspection/testing.
Methods
Section titled “Methods”[asyncDispose]()
Section titled “[asyncDispose]()”[asyncDispose]():
Promise<void>
Defined in: packages/core/src/kernel/types.ts:1173
Async disposable — delegates to shutdown().
Returns
Section titled “Returns”Promise<void>
boot()
Section titled “boot()”boot():
Promise<ExitCode>
Defined in: packages/core/src/kernel/types.ts:1161
Boot a shell as PID 1, resolve when it exits.
Returns
Section titled “Returns”Promise<ExitCode>
shutdown()
Section titled “shutdown()”shutdown():
Promise<void>
Defined in: packages/core/src/kernel/types.ts:1170
Gracefully shut down the system.
Returns
Section titled “Returns”Promise<void>
spawn()
Section titled “spawn()”spawn(
bin,argv?,opts?):Promise<ChildHandle>
Defined in: packages/core/src/kernel/types.ts:1164
Spawn any bin as a top-level process (ppid=0).
Parameters
Section titled “Parameters”string | BinFunction
string[]
Returns
Section titled “Returns”Promise<ChildHandle>
wait()
Section titled “wait()”wait():
Promise<ExitCode>
Defined in: packages/core/src/kernel/types.ts:1167
Wait for the system to shut down (shell exit).
Returns
Section titled “Returns”Promise<ExitCode>