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

Comparing Coro/Coro.pm (file contents):
Revision 1.27 by root, Sat Jul 28 01:41:57 2001 UTC vs.
Revision 1.28 by root, Fri Aug 10 21:03:40 2001 UTC

190Future versions of this function will allow result arguments. 190Future versions of this function will allow result arguments.
191 191
192=cut 192=cut
193 193
194sub terminate { 194sub terminate {
195 push @destroy, $current; 195 $current->cancel;
196 $manager->ready;
197 &schedule; 196 &schedule;
198 # NORETURN 197 die; # NORETURN
199} 198}
200 199
201=back 200=back
202 201
203# dynamic methods 202# dynamic methods
236 235
237=cut 236=cut
238 237
239sub ready { 238sub ready {
240 push @ready, $_[0]; 239 push @ready, $_[0];
240}
241
242=item $process->cancel
243
244Like C<terminate>, but terminates the specified process instead.
245
246=cut
247
248sub cancel {
249 push @destroy, $_[0];
250 $manager->ready;
241} 251}
242 252
243=back 253=back
244 254
245=cut 255=cut

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines