Multi-Threading, Not Killing When jumping out of play mode

well i am doing this because the end goal is to get the data from database without pausing the main thread.

I will post the code, I am trying out a new way of implementing Async tasks via threadpool that auto deletes it after completion.