NAME
Progress::Any::Output::Callback - Propagate progress update to a callback function
VERSION
This document describes version 0.04 of Progress::Any::Output::Callback (from Perl distribution Progress-Any-Output-Callback), released on 2015-08-17.
SYNOPSIS
use Progress::Any::Output;
Progress::Any::Output->set(
'Callback',
callback=>sub {
my ($self, %args) = @_;
...
}
);
DESCRIPTION
This output propagates progress update to your specified callback. Callback will receive what the output's update() receives: $self, %args
where %args
contains: indicator
, message
, level
, etc.
METHODS
new(%args) => OBJ
Instantiate. Usually called through Progress::Any::Output->set("Callback", %args)
.
Known arguments:
callback => CODE
Required.
SEE ALSO
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Progress-Any-Output-Callback.
SOURCE
Source repository is at https://github.com/perlancar/perl-Progress-Any-Output-Callback.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Progress-Any-Output-Callback
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.