Catalyst::Continuation - Pseudo-continuation objects for Catalyst
$c->cont("foo");
This object is returned by the "cont" in Catalyst::Plugin::Continuation method. It captures the current state of execution within the context object as best as it can, within the limitations perl and Perl.
Please do not try to construct it directly.
Create a continuation
Restore a continuation. Takes a value as returned by as_hashref. Requires the $c object to be specified.
as_hashref
$c
Returns a hash ref that can be serialized. This is required for serialization due to the fact that $c is different between requests.
Create the structure that shadows $c's fields. Suitable for passing to _localize_fields.
_localize_fields
The ID of this continuation.
Invoke the continuation, localizing the whole $c object to what it was when the continuation was created, and calling the ->forward.
See also forward_to_caller for what happens once this is done.
forward_to_caller
This method will return a URI that will cause the continuation to be reinvoked.
It automatically calls save_in_store, in order to allow this continuation to be invoked from different requests.
save_in_store
This method causes the continuation to ask the $c object to save it somewhere. This is handled by Catalyst::Plugin::Continuation, and any overrides that may have been added.
The inverse of saved_in_store.
saved_in_store
Which method to invoke on $c as the continuation.
Defaults to forward.
forward
The argumetns to pass to method. This is an array reference, typically containing the string of the path to forward to.
method
Whether or not to ->forward back to the action that created the continuation. This defaults to true when a continuation is being restored from storage in a new request, and defaults to false otherwise.
When false nothing happens. When true defaults to a regular forward. When any string, invokes that method.
Whether or not a continuation should delete itself after being executed.
Defaults to true.
This is thte Moose meta class instance for the continuation's class.
These two fields are used internally to integrate the continuation with the current request.
These paramters contain the collected data. You may use this as a reference to find out what is saved/restored when a continuation is created/executed.
These correspond to the methods/fields of $c.
The last element on $c->stack
$c->stack
To install Catalyst::Plugin::Continuation, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Continuation
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Continuation
For more information on module installation, please visit the detailed CPAN module installation guide.