Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

Add TmpDir.await_cleanup/1 for reliable test synchronization - #86

Merged
ericmj merged 1 commit into
mainfrom
ericmj/tmpdir-await-cleanup
Mar 29, 2026
Merged

ericmj merged 1 commit into
mainfrom
ericmj/tmpdir-await-cleanup

Conversation

@ericmj

@ericmj ericmj commented Mar 29, 2026

Copy link
Copy Markdown
Member

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.

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 2a5234f 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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant