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
/** 刷新(执行)任务队列 */ function flushJob() { if (isFlushing) return; isFlushing = true; p.then(() => { jobQueue.forEach((job: any) => job()); }).finally(() => { isFlushing = false; // 清空队列 jobQueue.clear(); }); }
如果不清空,看起来会在下一个任务周期中数据变化后不需要执行的job再次执行(某些条件下,job应该被cleanup并且不需要再执行了)
The text was updated successfully, but these errors were encountered:
ps:看的是电子书不知道第几页 不过代码在4.7篇章
Sorry, something went wrong.
No branches or pull requests
如果不清空,看起来会在下一个任务周期中数据变化后不需要执行的job再次执行(某些条件下,job应该被cleanup并且不需要再执行了)
The text was updated successfully, but these errors were encountered: