AnyEvent-Semaphore

 view release on metacpan or  search on metacpan

lib/AnyEvent/Semaphore.pm  view on Meta::CPAN

  my $watcher = $sem->down( sub { ... } );
  ...

  undef $watcher; # semaphore up



=head1 DESCRIPTION

This module provides a semaphore implementation intended to be used
with the L<AnyEvent> framework.

It tries to be as simple as possible and to follow AnyEvent style.

=head2 API

The module provides the following methods:

=over 4

=item $sem = AnyEvent::Semaphore->new($size);



( run in 0.639 second using v1.01-cache-2.11-cpan-df04353d9ac )