From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

=head1 NAME
UniEvent::Streamer::StreamInput - stream input for streamer
=head1 SYNOPSIS
my $stream = UE::Tcp->new;
# connect stream
my $input = UE::Streamer::StreamInput->new($stream);
my $streamer = UE::Streamer->new($input, $output);
$streamer->start();
$streamer->finish_callback(sub { ... });
=head1 DESCRIPTION
Pulls in data from stream and pushes it into L<UniEvent::Streamer>.
The underlying stream can be L<UniEvent::Tcp>, L<UniEvent::Pipe> or L<UniEvent::Tty>.
=head1 METHODS
=head2 new($stream)
Constructs new input stream for from the L<UniEvent::Stream> handle.
=cut