perl-AnyEvent-Callback-0.05-alt1.noarch.rpm


Advertisement

Description

perl-AnyEvent-Callback - callback aggregator for L<AnyEvent> watchers

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-AnyEvent-Callback
Package version: 0.05
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 7.31 KB
Download size: 7.31 KB
Official Mirror: ftp.altlinux.org
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 the carp entry in the Carp manpage). 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 @args, 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 }); }); }

Alternatives

Requires

Provides

  • perl(AnyEvent/Callback.pm) = 0.050
  • perl-AnyEvent-Callback = 0.05-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-AnyEvent-Callback rpm package:
      # sudo apt-get install perl-AnyEvent-Callback

    Files

    • /usr/share/doc/perl-AnyEvent-Callback-0.05/Changes
    • /usr/share/perl5/AnyEvent/Callback.pm
    Advertisement
    Advertisement