-
Notifications
You must be signed in to change notification settings - Fork 45
pipeline state bugs #88
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
Comments
Note that the last bullet point will resolve the TODO question in CommitInstantiated: we have an invariant (should be an assert towards the beginning of the abstract operation's steps) that the value is fully assimilated. It can never be a thenable. |
caridy
added a commit
to caridy/loader
that referenced
this issue
Oct 8, 2015
caridy
added a commit
that referenced
this issue
Oct 12, 2015
related to issue #88: refactor to use a list of stages instead of internal slots for each state.
related to #96 |
solved by PR #97 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A few bugs in the management of internal state in the pipeline:
link
-or-later.undefined
. This indicates that the stage is complete but we no longer have the data available. One way of looking at this is the.load
method enables prefetching and signals completion, and that completion provides the intermediate value only if it's still available. Prefetching logic needs to be prepared to handle this case. (Note that the high-level.import
method has none of this subtlety.) Another way of looking at it is if you want to be guaranteed to get the data as it's available, you need to be setting the hooks, not using.load
..then
its result. Note that this guarantees we aren't in a later stage than X-1 so we are guaranteed not to get a tombstone..provide
method should be async -- it shouldPromise.resolve
its argument and then update the state. (The result of.provide
should be aPromise<undefined>
instead ofundefined
, so that the caller can be notified when the update has happened.) This resolves several issues:The text was updated successfully, but these errors were encountered: