File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
swift-6-beta.docc/ReferenceManual Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2465,13 +2465,13 @@ Swift 提供了以下 Interface Builder 特性:
2465
2465
2466
2466
### escaping
2467
2467
2468
- Apply this attribute to a parameter's type in a function or method declaration
2469
- to indicate that the parameter's value can be stored for later execution.
2470
- This means that the value is allowed to outlive the lifetime of the call.
2471
- Function type parameters with the ` escaping ` type attribute
2472
- require explicit use of ` self. ` for properties or methods.
2473
- For an example of how to use the ` escaping ` attribute,
2474
- see < doc:Closures#Escaping-Closures > .
2468
+ 将此特性应用于函数或方法声明中的参数类型,
2469
+ 以指示参数的值可以存储以供后续执行。
2470
+ 这意味着该值可以超出调用的生命周期。
2471
+ 具有 ` escaping ` 类型特性的函数类型参数
2472
+ 需要对特性或方法显式使用 ` self. ` 。
2473
+ 有关如何使用 ` escaping ` 特性的示例,
2474
+ 见 < doc:Closures#Escaping-Closures > 。
2475
2475
2476
2476
### Sendable
2477
2477
You can’t perform that action at this time.
0 commit comments