iPhone - a delay between operations in the queue

后端 未结 4 1861
挽巷
挽巷 2021-02-03 15:20

I am adding operations to the queue using something like this

NSInvocationOperation *operation0 = [[NSInvocationOperation alloc] 
initWithTarget:self
selector:@s         


        
4条回答
  •  走了就别回头了
    2021-02-03 15:24

    you can do like following manner

    [operation0 addDependancy:operation1];
    [operation1 addDependancy:operation2];
    

    and now add [NSThread sleepforTimeInterval:5] to at the end of each task

提交回复
热议问题