We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c75f77 commit 70077e9Copy full SHA for 70077e9
doc/Type/atomicint.pod6
@@ -31,12 +31,13 @@ must be used in conjunction with the atomic operations.
31
await start { for ^20000 { $total⚛++ } } xx 4;
32
say $total;
33
34
+ # *** WRONG *** due to lack of use of the atomicint type.
35
# Either works correctly or dies, depending on platform.
36
my int $total = 0;
37
38
39
- # Wrong due to lack of use of the atomic increment operator.
40
+ # *** WRONG *** due to lack of use of the atomic increment operator.
41
my atomicint $total = 0;
42
await start { for ^20000 { $total++ } } xx 4;
43
0 commit comments