Just want to poke in here to say, many background task uses have noticed inconsistent behavior when using anything other than the way you are doing it here in this part of your code.
The link below is just one example where this was discussed:
Just want to poke in here to say, many background task uses have noticed inconsistent behavior when using anything other than the way you are doing it here in this part of your code.
The link below is just one example where this was discussed: