| waitFor |
(Process proc) |
yoix.system |
| |
Waits for process
proc
to complete before returning.
| |
| Example: |
On a UNIX-like system the program,
import yoix.stdio.*;
import yoix.system.*;
import yoix.thread.*;
Process sleeper;
double start;
sleeper = exec("sleep 5");
start = currentTimeMillis();
waitFor(sleeper);
printf("elapsed milliseconds %g\n", currentTimeMillis() - start);
should print a number close to
5000
on standard output.
| | |
| Return: |
none
| | |
| See Also: |
exec,
Process
|
|
Yoix is a registered trademark of AT&T Inc.
|