Skip to content

Commit 6b3e9d8

Browse files
committed
more s/async/start/ tweaks
1 parent 2f50e05 commit 6b3e9d8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

S04-control.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ lexical scope looks like at run time. That's okay.)
902902
X<do>
903903

904904
Other similar forms, where a keyword is followed by code to be controlled by it, may also take bare statements,
905-
including C<try>, C<once>, C<quietly>, C<contend>, C<async>, C<lazy>, and C<sink>. These constructs
905+
including C<try>, C<once>, C<quietly>, C<contend>, C<start>, C<lazy>, and C<sink>. These constructs
906906
establish a dynamic scope without necessarily establishing a lexical
907907
scope. (You can always establish a lexical scope explicitly by using
908908
the block form of argument.) As statement introducers, all these
@@ -1451,7 +1451,7 @@ in lowercase. They parse the same as phasers:
14511451
try {...}* evaluate and trap exceptions (implies 'use fatal')
14521452
quietly {...}* evaluate and suppress warnings
14531453
contend {...}* attempt side effects under STM
1454-
async {...} start a subthread
1454+
start {...} start computation of a promised result
14551455

14561456
Constructs marked with a C<*> have a run-time value, and if evaluated
14571457
earlier than their surrounding expression, they simply save their

S06-routines.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ because it is part of a conditional operator, or a default initialization of
4343
an attribute. It has no scope of its own, so any new variables defined in
4444
a thunk, will leak to the scope that they're in. Note however that
4545
any and all lazy constructs, whether block-based or thunk-based,
46-
such as gather or async or C<< ==> >> should declare their own C<$/>
46+
such as gather or start or C<< ==> >> should declare their own C<$/>
4747
and C<$!> so that the user's values for those variables cannot be
4848
clobbered asynchronously.
4949

S17-concurrency.pod

Lines changed: 3 additions & 3 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: 3 Nov 2013
17-
Version: 1
16+
Last Modified: 4 Nov 2013
17+
Version: 2
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
@@ -288,7 +288,7 @@ are kept. If the first promise to produce a result is instead broken, then
288288
the resulting C<Promise> is also broken. The cause is passed along. When the
289289
C<Promise> is kept, it has a C<True> result.
290290

291-
my $calc = async { ... }
291+
my $calc = start { ... }
292292
my $timeout = Promise.alarm(10);
293293
my $timecalc = Promise.anyof($calc, $timeout);
294294

0 commit comments

Comments
 (0)