Wait for the process to exit, allowing other fibers to continue in the meantime.
int wait() @safe;
.typecons .Nullable!(int) wait (
.time .Duration timeout
|timeout||Optionally wait until a timeout is reached.|
The exit code of the process. If a timeout is given and reached, a null value is returned.