Skip to content
New issue

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

关于是否执行调度未解释清楚 #68

Open
DaphnisLi opened this issue Mar 7, 2022 · 4 comments
Open

关于是否执行调度未解释清楚 #68

DaphnisLi opened this issue Mar 7, 2022 · 4 comments

Comments

@DaphnisLi
Copy link

这个地方关于调度的解释并不明确,源码中是在 legacy或blocking模式下并且执行栈为空才会取消调度,但是这里却解释 legacy 下的任何更新都不会经过调度
image

@7kms
Copy link
Owner

7kms commented Mar 7, 2022

感谢指正, 这里确实是写错了, 应该是legacy模式下的首次更新, 是不经过scheduler

@DaphnisLi
Copy link
Author

感谢指正, 这里确实是写错了, 应该是legacy模式下的首次更新, 是不经过scheduler

好的好的,谢谢回答,以后还请多多帮助😁

@7kms
Copy link
Owner

7kms commented Mar 7, 2022

嗯嗯 相互学习

@shayulajiaoten
Copy link

感谢指正, 这里确实是写错了, 应该是legacy模式下的首次更新, 是不经过scheduler

似乎在legacy模式下,这里虽然在scheduler注册了taskQueue,最后无论执行什么情况下的更新还是会执行flushSyncCallbackQueue将taskQueue的任务删除掉,请问我这样理解对么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants