Home

Awesome

Build Status

NAME

Fiber - Coroutine like Ruby Fiber

SYNOPSIS

use Fiber;

my $counter = Fiber->new(sub {
    my $n = 0;
    while (1) {
        Fiber->yield($n++);
    }
});

$counter->resume; # => 0
$counter->resume; # => 1
$counter->resume; # => 2

DESCRIPTION

Fiber is a coroutine implementaion like Ruby Fiber. This module is built upon Coro.

METHODS

AUTHOR

Yohei Fushii hakobe@gmail.com

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.