Skip to content

Commit 76e4a37

Browse files
committed
Clarifies introduction.
Also adds a stub, following advice in #3209. Adds a missing method stub, refs #3321.
1 parent bf9480f commit 76e4a37

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc/Type/Scheduler.pod6

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
has &.uncaught_handler is rw
99
}
1010
11-
Common role for schedulers. A scheduler is a piece of code that determines
12-
which resources to use to run which task, and when.
11+
A scheduler is a piece of code that determines which resources to use to run
12+
which task, and when. This role contains code that will be the same for all
13+
kinds of schedulers.
1314
1415
Some operations for example on L<Proc::Async|/type/Proc::Async>,
1516
L<Promise|/type/Promise>, L<Supply|/type/Supply> allow you to specify a
@@ -63,6 +64,14 @@ will be thrown. This only applies to releases 2019.05 and later.
6364
One should call the C<cancel> method on the returned C<Cancellation> object
6465
to cancel the (possibly repeated) cueing of the code.
6566
67+
=head2 method loads
68+
69+
Defined as:
70+
71+
method loads()
72+
73+
This is a method stub, should be re-implemented when subclassing.
74+
6675
=end pod
6776

6877
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)