Zing::Ring - Process Ring
Multi-Process Assembly Ring
use Zing::Ring; use Zing::Process; my $ring = Zing::Ring->new(processes => [ Zing::Process->new, Zing::Process->new, ]); # $ring->execute;
This package provides a mechanism for joining two (or more) processes and executes them as one in a turn-based manner.
This package inherits behaviors from:
Zing::Process
This package uses type constraints from:
Zing::Types
This package has the following attributes:
processes(ArrayRef[Process])
This attribute is read-only, accepts (ArrayRef[Process]) values, and is required.
(ArrayRef[Process])
This package implements the following methods:
destroy() : Object
The destroy method executes the destroy method of all the processes in the list.
destroy
# given: synopsis [$ring, $ring->destroy]
perform() : Any
The perform method executes the event-loop of the next process in the list with each call.
# given: synopsis [$ring, $ring->perform]
shutdown() : Object
The shutdown method executes the shutdown method of all the processes in the list.
shutdown
# given: synopsis [$ring, $ring->shutdown]
winddown() : Object
The winddown method executes the winddown method of all the processes in the list.
winddown
# given: synopsis [$ring, $ring->winddown]
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.