Using queues within asynchronous scenarios