Capturing `self` in the body of a `Task` started from within a `deinit`

From the last time this was brought up:


FYI the preferred way to do this is to put the variable in the closure's capture list.

deinit {
    Task { [uuid] in
        doSomething(with: uuid)
    }
}
7 Likes