1TAP::Parser::Scheduler:U:sJeorb(C3o)ntributed Perl DocumTeAnPt:a:tPiaornser::Scheduler::Job(3)
2
3
4
6 TAP::Parser::Scheduler::Job - A single testing job.
7
9 Version 3.43
10
12 use TAP::Parser::Scheduler::Job;
13
15 Represents a single test 'job'.
16
18 Class Methods
19 "new"
20
21 my $job = TAP::Parser::Scheduler::Job->new(
22 $filename, $description
23 );
24
25 Given the filename and description of a test as scalars, returns a new
26 TAP::Parser::Scheduler::Job object.
27
28 Instance Methods
29 "on_finish"
30
31 $self->on_finish(\&method).
32
33 Register a closure to be called when this job is destroyed. The
34 callback will be passed the "TAP::Parser::Scheduler::Job" object as
35 it's only argument.
36
37 "finish"
38
39 $self->finish;
40
41 Called when a job is complete to unlock it. If a callback has been
42 registered with "on_finish", it calls it. Otherwise, it does nothing.
43
44 Attributes
45 $self->filename;
46 $self->description;
47 $self->context;
48
49 These are all "getters" which return the data set for these attributes
50 during object construction.
51
52 "filename"
53
54 "description"
55
56 "context"
57
58 "as_array_ref"
59
60 For backwards compatibility in callbacks.
61
62 "is_spinner"
63
64 $self->is_spinner;
65
66 Returns false indicating that this is a real job rather than a
67 'spinner'. Spinners are returned when the scheduler still has pending
68 jobs but can't (because of locking) return one right now.
69
70
71
72perl v5.34.0 2021-07-23 TAP::Parser::Scheduler::Job(3)