Function Process.wait

Waits for this process to complete and returns the exit code.

Prototype

int wait();