Expand description
Add wait for a process and return the resources it used.
As for wait
, it waits for the child to exit completely,
returning the status that it exited with and an estimate of
the time and memory resources it used.
The stdin handle to the child process, if any, will be
closed before waiting, refer to wait
for the rationale
for it.