… | |
… | |
519 | Wait for the specified rouse callback (or the last one that was |
519 | Wait for the specified rouse callback (or the last one that was |
520 | created in this coro). |
520 | created in this coro). |
521 | |
521 | |
522 | As soon as the callback is invoked (or when the callback was invoked |
522 | As soon as the callback is invoked (or when the callback was invoked |
523 | before "rouse_wait"), it will return the arguments originally passed |
523 | before "rouse_wait"), it will return the arguments originally passed |
524 | to the rouse callback. |
524 | to the rouse callback. In scalar context, that means you get the |
|
|
525 | *last* argument, just as if "rouse_wait" had a "return ($a1, $a2, |
|
|
526 | $a3...)" statement at the end. |
525 | |
527 | |
526 | See the section HOW TO WAIT FOR A CALLBACK for an actual usage |
528 | See the section HOW TO WAIT FOR A CALLBACK for an actual usage |
527 | example. |
529 | example. |
528 | |
530 | |
529 | HOW TO WAIT FOR A CALLBACK |
531 | HOW TO WAIT FOR A CALLBACK |