Plack::Session::Cleanup3pm
Run code when the environment is destroyed
Usage
$env->{'run_at_cleanup'} = Plack::Session::Cleanup->new(sub {# ...});
Overview
This provides a way for Plack::Middleware::Session to run code when the environment is cleaned up.
Methods
- new ( $coderef )
-
Executes the given code reference when the object is
"DESTROY"'d. Care should be taken that the given code reference does not close over$env, creating a cycle and preventing the$envfrom being destroyed.
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.