… | |
… | |
392 | } |
392 | } |
393 | |
393 | |
394 | =item $coroutine->join |
394 | =item $coroutine->join |
395 | |
395 | |
396 | Wait until the coroutine terminates and return any values given to the |
396 | Wait until the coroutine terminates and return any values given to the |
397 | C<terminate> or C<cancel> functions. C<join> can be called multiple times |
397 | C<terminate> or C<cancel> functions. C<join> can be called concurrently |
398 | from multiple coroutine. |
398 | from multiple coroutines. |
399 | |
399 | |
400 | =cut |
400 | =cut |
401 | |
401 | |
402 | sub join { |
402 | sub join { |
403 | my $self = shift; |
403 | my $self = shift; |