Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37856363
en ru br
ALT Linux repositórios
S:1.1-alt1

Group :: Desenvolvimento/Perl
RPM: perl-AnyEvent-AIO

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

AnyEvent-AIO-1.1/000075500000000000000000000000001147427215300135165ustar00rootroot00000000000000AnyEvent-AIO-1.1/AIO.pm000064400000000000000000000024451147427215300144710ustar00rootroot00000000000000=head1 NAME

AnyEvent::AIO - truly asynchronous file and directory I/O

=head1 SYNOPSIS

use AnyEvent::AIO;
use IO::AIO;

# can now use any of the aio requests your IO::AIO module supports
# as long as you use an event loop supported by AnyEvent.

=head1 DESCRIPTION

This module is an L<AnyEvent> user, you need to make sure that you use and
run a supported event loop.

Loading this module will install the necessary magic to seamlessly
integrate L<IO::AIO> into L<AnyEvent>, i.e. you no longer need to concern
yourself with calling C<IO::AIO::poll_cb> or any of that stuff (you still
can, but this module will do it in case you don't).

The AnyEvent watcher can be disabled by executing C<undef
$AnyEvent::AIO::WATCHER>. Please notify the author of when and why you
think this was necessary.

=cut

package AnyEvent::AIO;

use strict;
no warnings;

use AnyEvent ();
use IO::AIO ();

use base Exporter::;

our $VERSION = '1.1';
our $WATCHER;

my $guard = AnyEvent::post_detect {
$WATCHER = AnyEvent->io (fh => IO::AIO::poll_fileno, poll => 'r', cb => \&IO::AIO::poll_cb);
};
$WATCHER ||= $guard;

IO::AIO::_on_next_submit \&AnyEvent::detect;

=head1 SEE ALSO

L<AnyEvent>, L<Coro::AIO> (for a more natural syntax).

=head1 AUTHOR

Marc Lehmann <schmorp@schmorp.de>
http://home.schmorp.de/

=cut

1
AnyEvent-AIO-1.1/COPYING000064400000000000000000000000761147427215300145540ustar00rootroot00000000000000This module is licensed under the same terms as perl itself.

AnyEvent-AIO-1.1/Changes000064400000000000000000000005461147427215300150160ustar00rootroot00000000000000Revision history for AnyEvent::AIO

1.1 Tue Jul 21 05:24:54 CEST 2009
- when AnyEvent::AIO was loaded after event loop intiialise,
then the watcher would get destroyed again.
- take advantage of AnyEvent 3.81 API and simplify the module
immensely.

1.0 Sat May 10 22:01:28 CEST 2008
- original version, a Net::SNMP::EV-clone.
AnyEvent-AIO-1.1/MANIFEST000064400000000000000000000002161147427215300146460ustar00rootroot00000000000000README
MANIFEST
COPYING
Changes
Makefile.PL
AIO.pm
t/00_load.t
META.yml Module meta-data (added by MakeMaker)
AnyEvent-AIO-1.1/META.yml000064400000000000000000000011411147427215300147640ustar00rootroot00000000000000{
"no_index" : {
"directory" : [
"t",
"inc"
]
},
"meta-spec" : {
"version" : 1.4,
"url" : "http://module-build.sourceforge.net/META-spec-v1.4.html"
},
"generated_by" : "ExtUtils::MakeMaker version 6.50",
"distribution_type" : "module",
"version" : "1.1",
"name" : "AnyEvent-AIO",
"author" : [],
"license" : "unknown",
"build_requires" : {
"ExtUtils::MakeMaker" : 0
},
"requires" : {
"AnyEvent" : 3.4,
"IO::AIO" : 3
},
"abstract" : null,
"configure_requires" : {
"ExtUtils::MakeMaker" : 0
}
}
AnyEvent-AIO-1.1/Makefile.PL000064400000000000000000000006151147427215300154720ustar00rootroot00000000000000use ExtUtils::MakeMaker;

my $mm = MM->new({
dist => {
PREOP => 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
COMPRESS => 'gzip -9v',
SUFFIX => '.gz',
},
NAME => "AnyEvent::AIO",
VERSION_FROM => "AIO.pm",
PREREQ_PM => {
IO::AIO => 3.0,
AnyEvent => 3.4,
},
});

$mm->flush;

AnyEvent-AIO-1.1/README000064400000000000000000000017101147427215300143750ustar00rootroot00000000000000NAME
AnyEvent::AIO - truly asynchronous file and directory I/O

SYNOPSIS
use AnyEvent::AIO;
use IO::AIO;

# can now use any of the aio requests your IO::AIO module supports
# as long as you use an event loop supported by AnyEvent.

DESCRIPTION
This module is an AnyEvent user, you need to make sure that you use and
run a supported event loop.

Loading this module will install the necessary magic to seamlessly
integrate IO::AIO into AnyEvent, i.e. you no longer need to concern
yourself with calling "IO::AIO::poll_cb" or any of that stuff (you still
can, but this module will do it in case you don't).

The AnyEvent watcher can be disabled by executing "undef
$AnyEvent::AIO::WATCHER". Please notify the author of when and why you
think this was necessary.

SEE ALSO
AnyEvent, Coro::AIO (for a more natural syntax).

AUTHOR
Marc Lehmann <schmorp@schmorp.de>
http://home.schmorp.de/

AnyEvent-AIO-1.1/t/000075500000000000000000000000001147427215300137615ustar00rootroot00000000000000AnyEvent-AIO-1.1/t/00_load.t000064400000000000000000000001731147427215300153650ustar00rootroot00000000000000BEGIN { $| = 1; print "1..1\n"; }
END {print "not ok 1\n" unless $loaded;}
use AnyEvent::AIO;
$loaded = 1;
print "ok 1\n";
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009