perl-AnyEvent-Promise-0.02-alt1.noarch.rpm


Advertisement

Description

perl-AnyEvent-Promise - Evented promises

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-AnyEvent-Promise
Package version: 0.02
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 7.73 KB
Download size: 7.73 KB
Official Mirror: ftp.altlinux.org
the AnyEvent::Promise manpage allows evented interfaces to be chained, taking away some of the redundancy of layering the AnyEvent manpage condition variable callbacks. A promise is created using AnyEvent::Promise::new or the exported the promise entry elsewhere in this document helper function. These will both return a promise instance and add the callback function as the start of the promise chain. Each call to the then entry elsewhere in this document on the promise instance will add another subroutine which returns a condition variable to the chain. The promise callback chain won't start until the condvar entry elsewhere in this document or the fulfill entry elsewhere in this document is called on the instance. Calling the condvar entry elsewhere in this document or the cv entry elsewhere in this document will start the callback chain and return the promise guarding condvar, which is fulfilled after the last callback on the chain returns. Similarily, the fulfill entry elsewhere in this document will start the chain, but will block until the guarding condvar is fulfilled. Errors in the callbacks can be caught by setting an exception handler via the the catch entry elsewhere in this document method on the promise instance. This method will catch exceptions raised from the AnyEvent manpage objects and exceptions raised in blocks provided to the then entry elsewhere in this document. If an error is encountered in the chain, an exception will be thrown and the rest of the chain will be skipped, jumping straight to the catch callback.

Alternatives

Requires

Provides

  • perl(AnyEvent/Promise.pm) = 0.020
  • perl-AnyEvent-Promise = 0.02-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-Promise rpm package:
      # sudo apt-get install perl-AnyEvent-Promise

    Files

    • /usr/share/doc/perl-AnyEvent-Promise-0.02/Changes
    • /usr/share/perl5/AnyEvent/Promise.pm
    Advertisement
    Advertisement