AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
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.