AE-AdHoc

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

AE-AdHoc

AE::AdHoc is a simple interface around AnyEvent intended for tests, examples,
and hastily written scripts.

It boils down to:

    use AE::AdHoc;

    my $result = ae_recv {
        do_something ( # the code under test
            on_success => ae_send,  # callback - all done, stop event loop
            on_failure => ae_croak, # callback - something happened, abort event loop
        );
    } 10; # timeout - fail test if it takes too long

    # later
    is ($result, $excepted_result, "...");

This module is under development for now.

INSTALLATION

To install this module, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc AE::AdHoc

You can also look for information at:

    RT, CPAN's request tracker
        http://rt.cpan.org/NoAuth/Bugs.html?Dist=AE-AdHoc

    AnnoCPAN, Annotated CPAN documentation
        http://annocpan.org/dist/AE-AdHoc

    CPAN Ratings
        http://cpanratings.perl.org/d/AE-AdHoc

    Search CPAN
        http://search.cpan.org/dist/AE-AdHoc/


LICENSE AND COPYRIGHT

Copyright (C) 2012 Konstantin S. Uvarin

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.416 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )