… | |
… | |
3105 | =back |
3105 | =back |
3106 | |
3106 | |
3107 | |
3107 | |
3108 | =head2 C<ev_cleanup> - even the best things end |
3108 | =head2 C<ev_cleanup> - even the best things end |
3109 | |
3109 | |
3110 | Cleanup watchers are called just before the event loop they are registered |
3110 | Cleanup watchers are called just before the event loop is being destroyed |
3111 | with is being destroyed. |
3111 | by a call to C<ev_loop_destroy>. |
3112 | |
3112 | |
3113 | While there is no guarantee that the event loop gets destroyed, cleanup |
3113 | While there is no guarantee that the event loop gets destroyed, cleanup |
3114 | watchers provide a convenient method to install cleanup hooks for your |
3114 | watchers provide a convenient method to install cleanup hooks for your |
3115 | program, worker threads and so on - you just to make sure to destroy the |
3115 | program, worker threads and so on - you just to make sure to destroy the |
3116 | loop when you want them to be invoked. |
3116 | loop when you want them to be invoked. |