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

Make Mix.Project.with_build_lock/2 public #13920

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

jonatanklosko
Copy link
Member

The lock can be useful in other projects. For example in the Phoenix code reloader we want to implement a mix listener and purge stale modules before compilation, which should happen within a lock, as we do in IEx.Helpers.recompile/1:

Mix.Project.with_build_lock(fn ->
purge_result = IEx.MixListener.purge()
case do_recompile(options) do

@josevalim josevalim merged commit 26899a9 into elixir-lang:main Oct 21, 2024
9 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@jonatanklosko jonatanklosko deleted the jk-build-lock branch October 21, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants