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

Comparing Coro/Coro.pm (file contents):
Revision 1.357 by root, Wed Jul 21 06:36:11 2021 UTC vs.
Revision 1.358 by root, Wed Jul 21 06:37:08 2021 UTC

188 188
189 my $hello_world = $coro->join; 189 my $hello_world = $coro->join;
190 190
191 print $hello_world; 191 print $hello_world;
192 192
193Another way to terminate is to call C<< Coro::terminate >>, which works at 193Another way to terminate is to call C<< Coro::terminate >>, the
194any subroutine call nesting level: 194thread-equivalent of C<exit>, which works at any subroutine call nesting
195level:
195 196
196 async { 197 async {
197 Coro::terminate "return value 1", "return value 2"; 198 Coro::terminate "return value 1", "return value 2";
198 }; 199 };
199 200

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines