Imported Upstream version 3.3.0
[debian/amanda] / perl / Amanda / MainLoop.pod
index d47a732d03eca627a7dcba771ca120daa19b66f3..a47e9c51288068f20c6d6c7d15417a02c0d9f66b 100644 (file)
@@ -408,6 +408,13 @@ To do the same for a single step, add the same keyword to the C<step> invocation
     step immediate => 1,
         connect => sub { .. };
 
+In some case, you want to execute some code when the step finish, it can
+be done by defining a finalize code in define_steps:
+
+    my $steps = define_steps
+           cb_ref => \$finished_cb,
+           finalize => sub { .. };
+
 =head2 JOINING ASYNCHRONOUS "THREADS"
 
 With slow operations, it is often useful to perform multiple operations