我是新手来解析和快速但是从我读过的API来看,Parse中的作业队列应该如何看待?如果这将允许在队列中排序多个作业,我会感到很困惑。这会确保不同的用户以正确的顺序与服务器交互吗?
let priority = DISPATCH_QUEUE_PRIORITY_DEFAULT
dispatch_async(dispatch_get_global_queue(priority, 0)) {
var q = PFQuery(className: "User")
q.whereKey("email", equalTo: "email@email.com")
var array = q.findObjects()
println(array)
}
dispatch_async(dispatch_get_main_queue()) {}