@@ -24,10 +24,11 @@ C<Failure> or exception in the process.
24
24
Here is a summary:
25
25
26
26
= begin code :skip-test
27
- BEGIN {...} # * at compile time, ASAP, only ever runs once
28
- CHECK {...} # * at compile time, ALAP, only ever runs once
29
- INIT {...} # * at runtime, ASAP, only ever runs once
30
- END {...} # at runtime, ALAP, only ever runs once
27
+ BEGIN {...} # * at compile time, as soon as possible, only ever runs once
28
+ CHECK {...} # * at compile time, as late as possible, only ever runs once
29
+ INIT {...} # * at runtime, as soon as possible, only ever runs once
30
+ END {...} # at runtime, as late as possible, only ever runs once
31
+ DOC [BEGIN|CHECK|INIT] {...} # only in documentation mode
31
32
32
33
ENTER {...} # * at every block entry time, repeats on loop blocks.
33
34
LEAVE {...} # at every block exit time (even stack unwinds from exceptions)
@@ -47,7 +48,7 @@ CONTROL {...} # catch control exceptions, before LEAVE
47
48
LAST {...} # supply tapped by whenever-block is done, runs very last
48
49
QUIT {...} # catch async exceptions within a whenever-block, runs very last
49
50
50
- COMPOSE {...} # when a role is composed into a class (NYI )
51
+ COMPOSE {...} # when a role is composed into a class (Not yet implemented )
51
52
CLOSE {...} # appears in a supply block, called when the supply is closed
52
53
= end code
53
54
@@ -127,14 +128,14 @@ teardown usually want to happen in the opposite order from each other.
127
128
Compilation begins
128
129
129
130
= for code :skip-test
130
- BEGIN {...} # at compile time, ASAP , only ever runs once
131
- CHECK {...} # at compile time, ALAP , only ever runs once
132
- COMPOSE {...} # when a role is composed into a class (NYI )
131
+ BEGIN {...} # at compile time, As soon as possible , only ever runs once
132
+ CHECK {...} # at compile time, As late as possible , only ever runs once
133
+ COMPOSE {...} # when a role is composed into a class (Not yet implemented )
133
134
134
135
Execution begins
135
136
136
137
= for code :skip-test
137
- INIT {...} # at runtime, ASAP , only ever runs once
138
+ INIT {...} # at runtime, as soon as possible , only ever runs once
138
139
139
140
Before block execution begins
140
141
@@ -415,16 +416,12 @@ C<warn>, C<proceed> and C<succeed>.
415
416
# Don't take my stuff
416
417
# 0
417
418
418
- = begin comment
419
419
420
- # NYI
421
- # =head1 Object phasers
422
- #
423
- # =head2 X < COMPOSE|Phasers, COMPOSE >
424
- #
425
- # Runs when a role is composed into a class.
420
+ = head1 Object phasers
426
421
427
- = end comment
422
+ = head2 X < COMPOSE|Phasers, COMPOSE > (Not yet implemented)
423
+
424
+ Runs when a role is composed into a class.
428
425
429
426
= head1 Asynchronous phasers
430
427
0 commit comments