⚠ There's a a slight mistake at 04:10: while it's true that the `Task.detached` won't be canceled, it would have also been the same for a regular `Task`. ⚠
Yesterday, i learned retain cycle from your previous videos. Today I try the Tip #2 in new sample project and I realized that the ViewModel not delocating from memory if we use the listenNotifications method as the first example. I check the ViewModel class allocation in memorygraph with everysteps to learn what's going on in the memory. Thank's for this valuable post for us !
Thanks for the video! I have a question about point 2 of the video. Does creating the async stream has different effect on memory when created outside of the Task closure or inside?
That's an interesting point! I guess it's a matter of whether you want to optimize for the normal case or for the edge case. If there's no real bad consequence to make two calls for nothing when the token has expired, I'd say it's better to stick with this simpler solution.