Would it be beneficial to use Task.start in this case?

Hey there,

I am adding photo removal from aws using ARC and this idea came to my mind, situation is the following:
user uploads new profile picture and once that is successful I remove the old one.
Question is would it make any difference if I call the deleting function from Task.start or just regularly calling the function?
Since the removal of the picture should not have an effect from the user’s perspective of the update, I am not interested in the result of that call.
Thoughts?

Removing the picture in a separate task would make your user experience better and faster since you would not need to wait for the picture to be removed.

If you do not care about the outcome of something, then doing it in a separate process is a good idea.

2 Likes

yeah this was my thought process as well ,thank you for confirming!