计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
swift-memory-management【效率与协作】Prevent retain cycles via ARC, weak/unowned references, and Capture Lists in Swift. Use when managing Swift ARC, avoiding retain cycles, or configuring capture lists in closures.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
weak).[weak self] at beginning of the closure's capture list. Pattern: { [weak self] in guard let self = self else { return } }.self copied by value.[weak self, weak delegate].weak var delegate always. Protocol inherits from AnyObject (e.g., protocol MyDelegate: AnyObject {})..weak or unowned in capture list.weak.When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
beginning of the closure's capture list
inherits from AnyObject
unowned if the reference is guaranteed
weak if the reference can become nil
Additional task-grounded exact anchors: retain cycle