result-building methods
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩
SE0289 (Result Builder) ⟩ ⭐️ (🔸 定義)
Swift Reference ⟩ Attributes ⟩ ⟩ resultBuilder ⭐️
An example to callbuildLimitedAvailability(_:)
method can be found in .
在 範例中,有在 result-building method 內使用 guard let 的情況 (如下)。所以 ⭐️ 重點二所指的「不能使用 guard」應該不是指在這些 result-building methods 中,而是指使用這個 result builder 的 (closure) block 內部不能使用。