dispatch_queue_t queque = dispatch_queue_create("GoyakodCreated", DISPATCH_QUEUE_CONCURRENT);
dispatch_async(queque, ^{
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
[self getToken:semaphore];/*dispatch_semaphore_signal(semaphore)*/
dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
[self request];
});
网友评论