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

Use ActionRegistry instead of TempRegistry everywhere #510

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

jorisdral
Copy link
Collaborator

@jorisdral jorisdral commented Dec 24, 2024

No description provided.

@jorisdral jorisdral changed the title Use ActionRegistry instead of TempRegistry everywhere Use ActionRegistry instead of TempRegistry everywhere Dec 24, 2024
@jorisdral jorisdral force-pushed the jdral/replace-registry branch from 0f2cb16 to 6e6f726 Compare December 24, 2024 10:00
@jorisdral jorisdral self-assigned this Dec 24, 2024
@jorisdral jorisdral force-pushed the jdral/replace-registry branch from 6e6f726 to d8ac09e Compare January 2, 2025 21:55
@jorisdral jorisdral force-pushed the jdral/replace-registry branch from d8ac09e to 526beec Compare January 2, 2025 22:00
Copy link
Collaborator

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment below. Otherwise, ready to merge.

src-control/Control/ActionRegistry.hs Show resolved Hide resolved
Say we have two delayed actions we want to register in the following order:
close a file handle, and remove the corresponding file. When the action registry
is committed, then previously we would run the actions in LIFO order. This leads
to an error because we can't remove a file while we also have an open handle to
that file. Now that we run the actions in FIFO order, it works correctly.
@jorisdral jorisdral force-pushed the jdral/replace-registry branch from 526beec to 2c7a183 Compare January 7, 2025 15:38
@jorisdral jorisdral enabled auto-merge January 7, 2025 15:38
@jorisdral jorisdral added this pull request to the merge queue Jan 7, 2025
Merged via the queue into main with commit e057c08 Jan 7, 2025
27 checks passed
@jorisdral jorisdral deleted the jdral/replace-registry branch January 7, 2025 16:40
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

Successfully merging this pull request may close these issues.

2 participants