Swift Capture Lists
The Language Guide claims you should use
unownedif the closure and containing object reference each other and will be destroyed at the same time. Presumably that’s to avoid the cost of safely nil’ing out aweakreference in an object that’s about to dealloc anyway.Most people aren’t aware that you can create new named values here as well[…]