… | |
… | |
555 | |
555 | |
556 | Arranges for the code block to be executed as soon as the event model is |
556 | Arranges for the code block to be executed as soon as the event model is |
557 | autodetected (or immediately if this has already happened). |
557 | autodetected (or immediately if this has already happened). |
558 | |
558 | |
559 | If called in scalar or list context, then it creates and returns an object |
559 | If called in scalar or list context, then it creates and returns an object |
560 | that automatically removes the callback again when it is destroyed. |
560 | that automatically removes the callback again when it is destroyed. See |
|
|
561 | L<Coro::BDB> for a case where this is useful. |
561 | |
562 | |
562 | =item @AnyEvent::post_detect |
563 | =item @AnyEvent::post_detect |
563 | |
564 | |
564 | If there are any code references in this array (you can C<push> to it |
565 | If there are any code references in this array (you can C<push> to it |
565 | before or after loading AnyEvent), then they will called directly after |
566 | before or after loading AnyEvent), then they will called directly after |