The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MogileFS::Client::Callback

SYNOPSIS

    my $mogfs = MogileFS::Client::Callback->new( ... )

    my $f = $mogfs->store_file_from_callback($class, $length, \%opts);

    $f->($data, 0);

    $f->("", 1); # indicate EOF

DESCRIPTION

This package inherits from MogileFS::Client::Async and provides an additional blocking API in which the data you wish to upload is supplied to a callback function, allowing other processing to take place on data as you read it from disc or elsewhere.

SEE ALSO

MogileFS::Client::Async