Zing::Zang::Watcher - Watcher Process
Watcher Process Implementation
use Zing::Zang::Watcher; my $zang = Zing::Zang::Watcher->new( on_perform => sub { my ($self) = @_; $self->{performed}++ }, scheme => ['MyApp', [], 1], ); # $zang->execute;
This package provides a Zing::Watcher which uses callbacks and doesn't need to be subclassd. It supports providing a process perform method as on_perform and a receive method as on_receive which operate as expected, and also requires a scheme to be launched on execution.
perform
on_perform
receive
on_receive
scheme
This package inherits behaviors from:
Zing::Watcher
This package uses type constraints from:
Zing::Types
This package has the following attributes:
on_perform(Maybe[CodeRef])
This attribute is read-only, accepts (Maybe[CodeRef]) values, and is optional.
(Maybe[CodeRef])
on_receive(Maybe[CodeRef])
scheme(Scheme)
This attribute is read-only, accepts (Scheme) values, and is required.
(Scheme)
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Zing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zing
CPAN shell
perl -MCPAN -e shell install Zing
For more information on module installation, please visit the detailed CPAN module installation guide.