Skip to content

Commit 05dcfbf

Browse files
authored
Merge pull request #2289 from MorayJ/phasers
Phasers
2 parents 3f2c47f + 39e169f commit 05dcfbf

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

doc/Language/phasers.pod6

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ C<Failure> or exception in the process.
2424
Here is a summary:
2525
2626
=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
3132
3233
ENTER {...} # * at every block entry time, repeats on loop blocks.
3334
LEAVE {...} # at every block exit time (even stack unwinds from exceptions)
@@ -47,7 +48,7 @@ CONTROL {...} # catch control exceptions, before LEAVE
4748
LAST {...} # supply tapped by whenever-block is done, runs very last
4849
QUIT {...} # catch async exceptions within a whenever-block, runs very last
4950
50-
COMPOSE {...} # when a role is composed into a class (NYI)
51+
COMPOSE {...} # when a role is composed into a class (Not yet implemented)
5152
CLOSE {...} # appears in a supply block, called when the supply is closed
5253
=end code
5354
@@ -127,14 +128,14 @@ teardown usually want to happen in the opposite order from each other.
127128
Compilation begins
128129
129130
=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)
133134
134135
Execution begins
135136
136137
=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
138139
139140
Before block execution begins
140141
@@ -415,16 +416,12 @@ C<warn>, C<proceed> and C<succeed>.
415416
# Don't take my stuff
416417
# 0
417418
418-
=begin comment
419419
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
426421
427-
=end comment
422+
=head2 X<COMPOSE|Phasers, COMPOSE> (Not yet implemented)
423+
424+
Runs when a role is composed into a class.
428425
429426
=head1 Asynchronous phasers
430427

0 commit comments

Comments
 (0)