File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,10 @@ thrown without any C<start> statement prefixes involved.
81
81
= begin code
82
82
use v6.d.PREVIEW;
83
83
start { die }; sleep ⅓; say "hello";
84
- # OUTPUT: Died
85
- # in block at -e line 1
84
+ # OUTPUT:
85
+ # Unhandled exception in code scheduled on thread 4
86
+ # Died
87
+ # in block at -e line 1
86
88
= end code
87
89
88
90
If you wish to avoid this behaviour, use C < start > in non-sink context or
@@ -99,9 +101,10 @@ catch the exception yourself:
99
101
# OUTPUT: «caughthello»
100
102
= end code
101
103
102
- This behaviour exists only syntaxically and not as part of method L < sink >
103
- on L < Promise > object, thus sinking a L < Promise > object or having a C < start >
104
- block as return value of a routine won't trigger this behaviour.
104
+ This behaviour exists only syntaxically, by using an alternate C < .sink > method
105
+ for L < Promise > objects created by C < start > blocks in sink context, thus simply
106
+ sinking a L < Promise > object that was created by other means won't trigger this
107
+ behaviour.
105
108
106
109
= head2 method in
107
110
You can’t perform that action at this time.
0 commit comments