Skip to content

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