How can I execute multiple async find() queries in Swift?

Hi i am trying to execute multiple async calls using dispatch_async_group but it is never executing the callbacks.

let dataStore = Backendless.sharedInstance().persistenceService.of(MyClass.ofClass())

let asyncGroup = AsyncGroup()

group.enter()

dataStore.find(query(), response: { result in

 print(result)

 group.leave()

}, error: { fault in

 print(fault)

 group.leave()

})


<ol>dataStore.find(secondAsyncQuery(), response: { result in

 print(result)

 group.leave()

}, error: { fault in

 print(fault)

 group.leave()

})

</ol>group.wait()
// Do the rest

the Async lib is https://github.com/duemunk/Async

You could use the sync calls with dispatch_group_async.