ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/README
(Generate patch)

Comparing Coro/README (file contents):
Revision 1.2 by root, Sat Aug 20 01:10:22 2005 UTC vs.
Revision 1.3 by root, Mon Nov 6 19:56:26 2006 UTC

43 async { ... } [@args...] 43 async { ... } [@args...]
44 Create a new asynchronous process and return it's process object 44 Create a new asynchronous process and return it's process object
45 (usually unused). When the sub returns the new process is 45 (usually unused). When the sub returns the new process is
46 automatically terminated. 46 automatically terminated.
47 47
48 When the coroutine dies, the program will exit, just as in the main
49 program.
50
48 # create a new coroutine that just prints its arguments 51 # create a new coroutine that just prints its arguments
49 async { 52 async {
50 print "@_\n"; 53 print "@_\n";
51 } 1,2,3,4; 54 } 1,2,3,4;
52 55
78 81
79 $process->ready 82 $process->ready
80 Put the given process into the ready queue. 83 Put the given process into the ready queue.
81 84
82 $process->cancel (arg...) 85 $process->cancel (arg...)
83 Temrinates the given process and makes it return the given arguments 86 Terminates the given process and makes it return the given arguments
84 as status (default: the empty list). 87 as status (default: the empty list).
85 88
86 $process->join 89 $process->join
87 Wait until the coroutine terminates and return any values given to 90 Wait until the coroutine terminates and return any values given to
88 the "terminate" or "cancel" functions. "join" can be called multiple 91 the "terminate" or "cancel" functions. "join" can be called multiple

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines