Skip to content

Commit 312a0ea

Browse files
committed
change :times to :limit
1 parent c358c19 commit 312a0ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

S17-concurrency.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RE-DRAFT: Synopsis 17: Concurrency
1313

1414
Created: 3 Nov 2013
1515

16-
Last Modified: 10 December 2013
17-
Version: 13
16+
Last Modified: 7 Jan 2014
17+
Version: 14
1818

1919
This synopsis is based around the concurrency primitives and tools currently
2020
being implemented in Rakudo on the JVM. It covers both things that are
@@ -199,11 +199,11 @@ with a delay before the first scheduling.
199199

200200
Since this will cause the given to be executed for the given interval ad
201201
infinitum, there are two ways to make sure the scheduling of the task is
202-
halted at a future time. The first is provided by specifying the C<:times>
202+
halted at a future time. The first is provided by specifying the C<:limit>
203203
parameter in the .cue:
204204

205205
# Every second, from now, but only 42 times
206-
$*SCHEDULER.cue: :every(1), :times(42), { say "Oh wow, a kangaroo!" };
206+
$*SCHEDULER.cue: :every(1), :limit(42), { say "Oh wow, a kangaroo!" };
207207

208208
The second is by specifying a variable that will be checked at the end of
209209
each interval. The task will be stopped as soon as it has a True value.

0 commit comments

Comments
 (0)