Skip to content

Commit b5099cb

Browse files
author
Carl Masak
committed
[S17-jnthn] dashes, sir.
Dashes look down on underscores, and thumb their noses at them. Leaving .handle_uncaught for now, as that one does seem low-level.
1 parent b608ca3 commit b5099cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

S17-concurrency-jnthn.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,17 @@ C<Callable> object and schedules it.
168168
There is also a method to schedule an operation to run after a certain time
169169
period:
170170

171-
$*SCHEDULER.schedule_in({ say "10s later" }, 10);
171+
$*SCHEDULER.schedule-in({ say "10s later" }, 10);
172172

173173
And one to schedule an operation to run at a fixed interval, possibly with a
174174
delay before the first scheduling.
175175

176176
# Every second, from now
177-
$*SCHEDULER.schedule_every({ say "Oh wow, a kangaroo!" }, 1);
178-
$*SCHEDULER.schedule_every({ say "Oh wow, a kangaroo!" }, 1, 0);
177+
$*SCHEDULER.schedule-every({ say "Oh wow, a kangaroo!" }, 1);
178+
$*SCHEDULER.schedule-every({ say "Oh wow, a kangaroo!" }, 1, 0);
179179

180180
# Every 0.5s, but don't start for 2s.
181-
$*SCHEDULER.schedule_every({ say "Kenya believe it?" }, 0.5, 2);
181+
$*SCHEDULER.schedule-every({ say "Kenya believe it?" }, 0.5, 2);
182182

183183
[To consider: we could have a single schedule method taking named parameters
184184
:$catch, :$in, and :$every instead.]

0 commit comments

Comments
 (0)