… | |
… | |
914 | that is, after it's resources have been freed but before it is joined. The |
914 | that is, after it's resources have been freed but before it is joined. The |
915 | callback gets passed the terminate/cancel arguments, if any, and I<must |
915 | callback gets passed the terminate/cancel arguments, if any, and I<must |
916 | not> die, under any circumstances. |
916 | not> die, under any circumstances. |
917 | |
917 | |
918 | There can be any number of C<on_destroy> callbacks per coro, and there is |
918 | There can be any number of C<on_destroy> callbacks per coro, and there is |
919 | no way currently to remove a callback once added. |
919 | currently no way to remove a callback once added. |
920 | |
920 | |
921 | =item $oldprio = $coro->prio ($newprio) |
921 | =item $oldprio = $coro->prio ($newprio) |
922 | |
922 | |
923 | Sets (or gets, if the argument is missing) the priority of the |
923 | Sets (or gets, if the argument is missing) the priority of the |
924 | coro thread. Higher priority coro get run before lower priority |
924 | coro thread. Higher priority coro get run before lower priority |