You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is that just like with present, observe won't execute outside @MainActorand won't outlive self because it gets removed on deinit, so in theory its safety should be guaranteed... right?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've seen the case studies using
unowned selfinsidepresentin a few places and it got me thinking. Could theweak self+guard selfdance be reduced to justunowned selfinside observation clauses?My understanding is that just like with
present,observewon't execute outside@MainActorand won't outliveselfbecause it gets removed on deinit, so in theory its safety should be guaranteed... right?Beta Was this translation helpful? Give feedback.
All reactions