addToQueue
is asynchronous so it already works on a separate thread and you don't need to call it from another thread (and you really shouldn't do that).
You can use addToQueueAndWait
but you are better off just calling the rest of your processing code after the data is fetched.