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

loadNext, loadCurrent, 会产生 号段 使用上的跳跃 #47

Open
gMan1990 opened this issue Aug 5, 2023 · 1 comment
Open

loadNext, loadCurrent, 会产生 号段 使用上的跳跃 #47

gMan1990 opened this issue Aug 5, 2023 · 1 comment

Comments

@gMan1990
Copy link

gMan1990 commented Aug 5, 2023

  1. 假设当前使用的号段为①
  2. 调用nextId多次后,会走进loadNext, 假设next = querySegmentId()里的querySegmentId已经执行完了,等待赋值给next
    • 假设这时候查到的号段为②
  3. 继续调用nextId直到用完,会走进loadCurrent。然后因为上面的next还没赋值,所以会走进querySegmentId
    • 假设这时候查到的号段为③

造成的结果: ①号段使用完了,③号段接着用,然后才可能用到②号段

@gMan1990
Copy link
Author

gMan1990 commented Aug 5, 2023

@duimba hhh

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

1 participant