We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
仔细看了代码,认为YBTaskScheduler的执行顺序逻辑并不可用。
双线队列固然能保证每个block任务在queue中是有序的(FIFO、LIFO、优先级),但最后执行的时候是在多个串行队列异步执行的。 然而多个异步线程之间的执行顺序其实是不能保证的,单纯的任务保存有序没有特别的价值。
The text was updated successfully, but these errors were encountered:
另外系统的NSOperationQueue完全能支持实现线程数量控制,还能在operation之间添加依赖,不需要自己额外维护一个串行队列列表。
Sorry, something went wrong.
No branches or pull requests
仔细看了代码,认为YBTaskScheduler的执行顺序逻辑并不可用。
双线队列固然能保证每个block任务在queue中是有序的(FIFO、LIFO、优先级),但最后执行的时候是在多个串行队列异步执行的。 然而多个异步线程之间的执行顺序其实是不能保证的,单纯的任务保存有序没有特别的价值。
The text was updated successfully, but these errors were encountered: