NAME

Proc::tored::Pool::Worker - executes a single code block

VERSION

version 0.01

METHODS

work

A class method that executes a supplied CODE ref. Returns an ARRAY ref of two values.

If the code executes successfully, an ARRAY ref is returned containing a true value followed by any values returned by the code ref. Note that the supplied CODE ref is evaluated in list context.

If the code dies when called, an ARRAY ref is returned containing a false value followed by the error thrown.

AUTHOR

Jeff Ober <jeffober@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Jeff Ober.

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