Skip to content

Add TmpDir.await_cleanup/1 for reliable test synchronization #106

Merged
ericmj merged 2 commits intomainfrom
ericmj/tmpdir-await-cleanup
Mar 29, 2026
Merged

Add TmpDir.await_cleanup/1 for reliable test synchronization #106
ericmj merged 2 commits intomainfrom
ericmj/tmpdir-await-cleanup

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Mar 29, 2026

Add a GenServer call that waits for cleanup to complete after a monitored process exits. If the process is still monitored, the reply is deferred until the :DOWN message is processed. This eliminates the race condition where :DOWN delivery to the GenServer could be delayed.

ericmj added 2 commits March 29, 2026 19:29
Add a GenServer call that waits for cleanup to complete after a
monitored process exits. If the process is still monitored, the
reply is deferred until the :DOWN message is processed. This
eliminates the race condition where :DOWN delivery to the GenServer
could be delayed.
@ericmj ericmj merged commit 5da2ca8 into main Mar 29, 2026
12 checks passed
@ericmj ericmj deleted the ericmj/tmpdir-await-cleanup branch March 29, 2026 17:56
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.

1 participant