understandingCombine icon indicating copy to clipboard operation
understandingCombine copied to clipboard

Use of unowned

Open dhoerl opened this issue 4 years ago • 0 comments

I believe its the first section of Assign that you use a capture list with "unowned self". Due to the asynchronous usage most Combine usages operate in, why not use "weak self".

Understood that it generates more overhead for iOS, but gee whiz, we have such powerful processors and gobs of memory, hardly an issue now. And you are guaranteed to not crash no matter if the block gets run while "self" is deconstructing on another thread.

dhoerl avatar Mar 30 '20 15:03 dhoerl