Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.237.791 Times

Async::Group 0.3

  Date Added: January 08, 2010  |  Visits: 1.125

Async::Group

Report Broken Link
Printer Friendly Version


Product Homepage
Download (105 downloads)



Async::Group is a Perl class to deal with simultaneous asynchronous calls. SYNOPSIS use Async::Group ; use strict ; sub sub1 { print "Dummy subroutine n"; my $dummy = shift ; my $cb = shift ; &$cb(1); } sub allDone { print "All done, result is ", shift ,"n" ; } my $a = Async::Group->new(name => aTest, test => 1) ; $a->run(set => [ sub {⊂1( callback => sub {$a->callDone(@_)} )}, sub {⊂1( callback => sub {$a->callDone(@_)} )} ], callback => &allDone ) # or another way which avoids the clumsy nested subs my $cb = $a->getCbRef(); $a->run(set => [ sub {⊂1( callback => $cb)}, sub {⊄1( callback => $cb )} ], callback => &allDone ) If you sometimes have to launch several asynchronous calls in parrallel and want to call one call-back function when all these calls are finished, this module may be for you. Async::Group is a class which enables you to call several asynchronous routines. Each routine may have their own callback. When all the routine are over (i.e. all their callback were called), Async::Group will call the global callback given by the user. Note that one Async::Group objects must be created for each group of parrallel calls. This object may be destroyed (or will vanish itself) once the global callback is called. Note also that Async::Group does not perform any fork or other system calls. It just run the passed subroutines and keep count of the call-back functions called by the aforementionned subroutines. When all these subs are finished, it calls another call-back (passed by the user) to perform whatever function required by the user. Using fork or threads or whatever is left to the user..

Requirements: No special requirements
Platforms: Linux
Keyword: Asyncgroup Asynchronous Callback Calls Class Deal With Libraries Programming Sub To Deal With
Users rating: 0/10

License: Freeware Size: 4.1 KB
USER REVIEWS
More Reviews or Write Review


ASYNC::GROUP RELATED
Libraries  -  Extended C++ Callback Library 0.0.6
Extended C++ Callback Library provides functors and delegates for up to ten parameters. Some callback "containers" will make life easier in special cases. For example, with DelegateList, you are able to execute all callbacks with a single call....
532.48 KB  
Libraries  -  DBIx::Class::LibXMLdoc 0.03
DBIx::Class::LibXMLdoc is a Perl module to create an adjunct "Doc" accessor of a columns data which is automatically parsed into a LibXML documentElement (alpha-software). SYNOPSIS package My::DB::thingy; __PACKAGE__->load_components(qw/...
5.12 KB  
Libraries  -  Class::Std 0.0.8
Class::Std is a Perl module to support for creating standard "inside-out" classes. SYNOPSIS package MyClass; use Class::Std; # Create storage for object attributes... my %name : ATTR; my %rank : ATTR; my %snum : ATTR; my %public_data :...
30.72 KB  
Libraries  -  Jakelib2 2.0.1
Jakelib2 is a cross platform C++ class library with a Java-like API. An automatic garbage collector is used to take care of unused objects. External libraries like PCRE or GTK+ are beeing integrated to provide the programmer with a homogeneous,...
962.56 KB  
Libraries  -  Class::HPLOO 0.23
Class::HPLOO is an easier way to declare classes on Perl, based in the popular class {...} style and ePod. USAGE use Class::HPLOO ; class Foo extends Bar , Baz { use LWP::Simple qw(get) ; ## import the method get() to this package. attr...
27.65 KB  
Libraries  -  Automated support for compound RPC calls 0.2
Automated support for compound RPC calls is a project which augments RPCGEN to support NFSv4-style compound procedures. NFSv4 specifies that the RPC calls be batched into a "compound" call. There is no support for this in RPCGEN. By...
22.53 KB  
Libraries  -  Class::CGI 0.20
Class::CGI is a Perl module to fetch objects from your CGI object. SYNOPSIS use Class::CGI handlers => { customer_id => My::Customer::Handler }; my $cgi = Class::CGI->new; my $customer = $cgi->param(customer_id); my $name =...
17.41 KB  
Libraries  -  DBIx::HTMLinterface 0.11
DBIx::HTMLinterface is a class for creating a CGI interface to a database. SYNOPSIS use CGI; use DBI; use DBIx::HTMLinterface; $cgi = new CGI; $dbh = DBI->connect("DBI:mysql:[DATABASE]:[HOSTNAME]","[USERNAME]","[PASSWORD]") );...
16.38 KB  
Libraries  -  Class::AbstractLogic 0.01_01
Class::AbstractLogic is a Perl module to handle Logic Abstractions. SYNOPSIS # the logic class definition package My::Logic::Foo; use Class::AbstractLogic-base; # a logic action action add, needs [qw(a b)], verify { a => sub { /^d+$/ },...
16.38 KB  
Libraries  -  LibPHPBase 0.9.14
LibPHPBase is a class-library with various tools for creating websites, the most important and useful parts are: HTML Abstraction A set of classes representing HTML-tags making OO-based site design easy. The generated code strives to be clean...
90.11 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB