Ashet OS

async_call: ashet.process.Spawn

Documentation

Spawns a new process

Inputs

dir: Directory

Relative base directory for path.

path: str

File name of the executable relative to dir.

argv: []const SpawnProcessArg

The arguments passed to the process. If a SystemResource is passed, it will receive the created process as a owning process. It is safe to release the resource in this process as soon as this operation returns.

Outputs

process: Process

Handle to the spawned process.

Errors

BadExecutable
DiskError
FileNotFound
InvalidHandle
InvalidPath
SystemResources