Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftweak self in closuresSingle-choice MCQ

Does capturing `self.delegate` (a `weak var`) without an explicit capture list create a retain cycle risk?

class Worker { weak var delegate: Delegate? var handler: (() -> Void)? func setup() { handler = { self.delegate?.didFinish() } } }