Is it dangerous to set off an autoreleased NSOperationQueue?

后端 未结 4 1678
陌清茗
陌清茗 2020-12-10 14:03

I have a task that takes a rather long time and should run in the background. According to the documentation, this can be done using an NSOperationQueue. Howeve

4条回答
  •  忘掉有多难
    2020-12-10 14:14

    There's nothing in the documentation to say what happens when the NSOperationQueue is released. It would be safest to assume there's no guarantee that theTask will get executed.

提交回复
热议问题