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

feat: synchronous execution of task continuations #3013

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

Kha
Copy link
Member

@Kha Kha commented Dec 2, 2023

In the new snapshot design, we have a tree of Tasks that represents the asynchronously processed document structure. When transforming this tree in response to a user edit, we want to quickly run through reusable, already computed nodes of the tree synchronously and then spawn new tasks for the new parts. The new flag allows us to do such mixed sync/async tree transformations uniformly. This flag exists as e.g. ExecuteSynchronously in other runtimes.

@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Dec 2, 2023
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 2, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Dec 2, 2023
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented Dec 2, 2023

leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Dec 2, 2023
@Kha
Copy link
Member Author

Kha commented Dec 5, 2023

Just to mention design alternatives I've considered, one could ask whether we should use a forward-compatible flag enum instead like .NET does above. But that's not something we really have as an idiom so far. In any case, I think this feature is advanced enough that I would not expect too much downstream breakage if we do consider a refactoring the next time we add a parameter.

@Kha Kha added this pull request to the merge queue Jan 25, 2024
Merged via the queue into leanprover:master with commit 6b0e7e1 Jan 25, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib CI has verified that Mathlib builds against this PR toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants