Skip to content

Commit

Permalink
Clarify a sentence; jnthn++
Browse files Browse the repository at this point in the history
  • Loading branch information
Altai-man committed May 17, 2019
1 parent 9025ba0 commit 1124099
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/Language/control.pod6
Expand Up @@ -185,8 +185,12 @@ is the only thing to do asynchronously.
my $promise = start get42;
say $promise.result; # OUTPUT: «42␤»
Note that code executed this way does not have access to special variables L«C<$!>|/syntax/$!»
and L«C<$/>|/syntax/$/» of its outer block, but receives new ones.
Note that code executed this way does not have access to the special
variables L«C<$!>|/syntax/$!» and L«C<$/>|/syntax/$/» of its outer
block, but receives new ones.
Thus, C<try> expressions and regex matches executed in the
asynchronous task have their per-task state.
'a' ~~ /a/; # $/ is set to 「a」
try die; # $! is defined now with an anonymous AdHoc exception
Expand Down

0 comments on commit 1124099

Please sign in to comment.