Process.wait

Wait for the process to exit, allowing other fibers to continue in the meantime.

  1. int wait()
  2. Nullable!int wait(Duration timeout)
    struct Process
    Nullable!int
    wait
    (
    Duration timeout
    )

Parameters

timeout Duration

Optionally wait until a timeout is reached.

Return Value

Type: Nullable!int

The exit code of the process. If a timeout is given and reached, a null value is returned.

Meta