Skip to content

ContainerizationOS: add an async wait method - #1021

Merged
crosbymichael merged 2 commits into
apple:mainfrom
adityaramani:wait-async
Nov 18, 2026
Merged

crosbymichael merged 2 commits into
apple:mainfrom
adityaramani:wait-async

Conversation

@adityaramani

@adityaramani adityaramani commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Command.wait() blocks the calling thread in wait4(), once the blocked threads exhaust the threadpool any subsequent async call in the same process hang.

Add Command.waitAsync(), which runs wait4 on a detached thread and resumes through a CheckedContinuation

Command.wait() blocks the calling thread in wait4().
Once the blocked threads exhaust the pool, any subsequent async step in
the same process hang.

Add Command.waitAsync(), which runs wait4 on a detached thread and
 resumes through a CheckedContinuation
@crosbymichael
crosbymichael merged commit ed90298 into apple:main Nov 18, 2026
19 of 22 checks passed
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