8000 Specify that async closures capture their inputs · compiler-errors/reference@1106780 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1106780

Browse files
committed
Specify that async closures capture their inputs
1 parent ff8c4eb commit 1106780

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/types/closure.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ let c = || {
9494
};
9595
```
9696

97+
### Async input capture
98+
99+
r[type.closure.async.input]
100+
Async closures always capture all input arguments, regardless of whether or not they are used within the body.
101+
97102
## Capture Precision
98103

99104
r[type.closure.capture.precision.capture-path]

0 commit comments

Comments
 (0)
0