1Event::ExecFlow::CallbaUcskesr(3C)ontributed Perl DocumeEnvteantti:o:nExecFlow::Callbacks(3)
2
3
4
6 Event::ExecFlow::Callbacks - Callbacks attached to jobs
7
9 #-- Create a new Callbacks object
10 my $callbacks = Event::ExecFlow::Callbacks->new (
11 sub { print "sub called\n" },
12 sub { print "another sub of this called\n" },
13 );
14
15 #-- Attach callbacks to a job
16 $job->set_pre_callbacks($callbacks);
17
18 #-- Add more subs
19 $callbacks->add(sub { print "a sub added later\n" });
20 $callbacks->prepend(sub { print "a sub prepended to the list of subs } );
21
22 #-- the execute() methods is executed later by Event::ExecFlow
23 $callbacks->execute($job);
24
26 This class represents one or more closures which can be attached as
27 callbacks to an Event::ExecFlow::Job.
28
30 Event::ExecFlow
31
32 Event::ExecFlow::Job
33 +--- Event::ExecFlow::Job::Group
34 +--- Event::ExecFlow::Job::Command
35 +--- Event::ExecFlow::Job::Code
36
37 Event::ExecFlow::Frontend
38 Event::ExecFlow::Callbacks
39 Event::ExecFlow::Scheduler
40 +--- Event::ExecFlow::Scheduler::SimpleMax
41
43 Attributes can by accessed at runtime using the common get_ATTR(),
44 set_ATTR() style accessors.
45
46 [ FIXME: describe all attributes in detail ]
47
49 [ FIXME: describe all methods in detail ]
50
52 Jörn Reder <joern at zyn dot de>
53
55 Copyright 2005-2006 by Jörn Reder.
56
57 This library is free software; you can redistribute it and/or modify it
58 under the terms of the GNU Library General Public License as published
59 by the Free Software Foundation; either version 2.1 of the License, or
60 (at your option) any later version.
61
62 This library is distributed in the hope that it will be useful, but
63 WITHOUT ANY WARRANTY; without even the implied warranty of
64 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
65 Library General Public License for more details.
66
67 You should have received a copy of the GNU Library General Public
68 License along with this library; if not, write to the Free Software
69 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307
70 USA.
71
73 Hey! The above document had some coding errors, which are explained
74 below:
75
76 Around line 112:
77 Non-ASCII character seen before =encoding in 'Jörn'. Assuming UTF-8
78
79
80
81perl v5.34.0 2022-01-21 Event::ExecFlow::Callbacks(3)