AnyEvent-Handle-Writer

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

          } else {
             return 0; # Work not done, call me again
          }
       });

       # sendfile
       $hdl->push_sendfile('/path/to/file', 1024);

RATIONALE
    We have great l<AnyEvent::Handle>. But it have only raw write queue.
    This module extends it with callbacks in write queue and adds a
    "push_sendfile()" call, which would be processed at correct time

METHODS
  push_write($data)
    "WRITE_QUEUE" in AnyEvent::Handle

  push_write(type => @args)
    "WRITE_QUEUE" in AnyEvent::Handle

  push_write($cb->($handle))

lib/AnyEvent/Handle/Writer.pm  view on Meta::CPAN

         return 0; # Work not done, call me again
      }
   });

   # sendfile
   $hdl->push_sendfile('/path/to/file', 1024);

=head1 RATIONALE

We have great l<AnyEvent::Handle>. But it have only raw write queue. This module extends it with
callbacks in write queue and adds a C<push_sendfile()> call, which would be processed at correct time

=head1 METHODS

=cut

=head2 push_write($data)

L<AnyEvent::Handle/WRITE_QUEUE>

=head2 push_write(type => @args)



( run in 0.335 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )