This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Editorial: Reinstate "evaluating-async" state alongside AsyncEvaluating -> AsyncEvaluation #179
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
codehag
approved these changes
May 15, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now.
… AsyncEvaluating checks
guybedford
force-pushed
the
async-evaluating
branch
from
May 15, 2021 18:38
08372ec
to
7b2a907
Compare
guybedford
changed the title
Editorial: Reinstate "async-evaluating" state alongside AsyncEvaluation -> QueuedEvaluation field
Editorial: Reinstate "evaluating-async" state alongside AsyncEvaluation -> QueuedEvaluation field
May 15, 2021
Ms2ger
approved these changes
May 17, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't done a super-thorough review, but the general idea seems to make sense. I'm happy to merge.
guybedford
changed the title
Editorial: Reinstate "evaluating-async" state alongside AsyncEvaluation -> QueuedEvaluation field
Editorial: Reinstate "evaluating-async" state alongside AsyncEvaluating -> AsyncEvaluation
May 19, 2021
we're doin' it. MERRRGE |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is in response to #171 by @kmiller68 where the usage of the
~evaluated~
state to indicate modules that are still currently async evaluating could be seen to be a confusing state definition. In addition, addressing a possible confusion that the[[AsyncEvaluating]]
state has also been misunderstood before since it applies to both queued executions and running executions.This is an editorial change which brings back the
~async-evaluating~
[[Status]]
value which is set for any module either currently asynchronously executing, or waiting on a dependency that is currently asynchronously executing and also renaming[[AsyncEvaluating]]
to[[QueuedEvaluation]]
with a slight adjustment to completion handling where instead of treating execution completion as the transition ofAsyncEvaluating
to false as before, we then treat execution completion as the transition of theasync-evaluating
state toevaluated
.The previous issue with the
~async-evaluating~
status was that we still needed a separate field forAsyncEvaluating
due to handling cycle transitions, as discussed in #114. TheQueuedEvaluation
field then still provides three purposes: iindicates which modules have async dependencies, it acts as the counter for async execution ordering and it handles within-cycle async queue attachment.This PR can be seen as performing the following (non-normative) editorial replacement operations in order:
~evaluated~
state checks with a check for~evaluated~
or~evaluating-async~
.~evaluating~ -> ~evaluated~
transition for async executions with an~evaluating~ -> ~evaluating-async~
transition.[[AsyncEvaluating]]
to[[AsyncEvaluation]]
.[[Status]]
fromevaluating-async -> evaluating
at all sites where we previously set[[AsyncEvaluating]]
to false.[[AsyncEvaluation]]
back to false, and instead entirely use the[[State]] == ~evaluated~
transitions for these checks.This is editorial since the
[[Status]]
is currently entirely private to the module execution semantics, so this editorial change is more about understandability and ensuring the underlying state model is as clear as possible for future module system additions.