Name : perl-AnyEvent-Callback
| |
Version : 0.05
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 3.69
| Date : 2024-08-05 20:27:40
|
Group : Development/Libraries/Perl
| Source RPM : perl-AnyEvent-Callback-0.05-3.69.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Callback Aggregator for L< Anyevent> Watchers
|
Description :
The module allows You to create callback\'s hierarchy. Also the module groups error and result callbacks into one object.
Also the module checks if one callback was called by watcher or not. If a watcher doesn\'t call result or error callback, error callback will be called automatically.
Also the module checks if a callback was called reentrant. In the case the module will complain (using Carp/carp).
If a watcher touches error callback and if superior didn\'t define error callback, the module will call error callback upwards hierarchy. Example:
AE::something AATTargs, CB \\&my_watcher, \\&on_error;
sub on_error {
}
sub my_watcher { my $cb = pop;
...
the_other_watcher $cb->CB( sub { # error callback wasn\'t defined my $cb = pop; ... yet_another_watcher1 $cb->CB( sub { my $cb = pop; ... $cb->( 123 ); # upwards callback
}); yet_another_watcher2 $cb->CB( sub { my $cb = pop; ...
$cb->error( 456 ); # on_error will be called
}); }); }
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/openSUSE_Tumbleweed/noarch |