Progress::Any::Output::Callback - Propagate progress update to a callback function
This document describes version 0.04 of Progress::Any::Output::Callback (from Perl distribution Progress-Any-Output-Callback), released on 2015-08-17.
use Progress::Any::Output; Progress::Any::Output->set( 'Callback', callback=>sub { my ($self, %args) = @_; ... } );
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.
$self, %args
%args
indicator
message
level
Instantiate. Usually called through Progress::Any::Output->set("Callback", %args).
Progress::Any::Output->set("Callback", %args)
Known arguments:
callback => CODE
Required.
Progress::Any
Please visit the project's homepage at https://metacpan.org/release/Progress-Any-Output-Callback.
Source repository is at https://github.com/perlancar/perl-Progress-Any-Output-Callback.
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.
perlancar <perlancar@cpan.org>
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.
To install Progress::Any::Output::Callback, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Progress::Any::Output::Callback
CPAN shell
perl -MCPAN -e shell install Progress::Any::Output::Callback
For more information on module installation, please visit the detailed CPAN module installation guide.