NAME

Perl6::GatherTake::LazyList - Lazy tied array for Perl6::GatherTake.

SYNOPSIS

You shouldn't use this module. Perl6::GatherTake does that transparently for you.

use Coro;
use Coro::Channel;
use Perl6::GatherTake::LazyList;

my $queue = Coro::Channel->new(1);

my $coro = async {
    for (1 .. 100){
        my $result;
        # do some heavy computations here
        $queue->put($result);
    }
};

my @results;
tie @results, 'Perl6::GatherTake::LazyList', $coro, $queue;

DESCRIPTION

Tied array implementation for Perl6::GatherTake. Again: don't use this yourself unless you really know what you're doing (and you don't).

LICENSE

Same as Perl6::GatherTake.

AUTHOR

Moritz Lenz, http://moritz.faui2k.org, http://perl-6.de/. E-Mail <moritz@faui2k3.org>.