Skip to content

Improve nob__proc_wait_async API#108

Closed
TheZouave007 wants to merge 2 commits intotsoding:mainfrom
TheZouave007:improve-async-api
Closed

Improve nob__proc_wait_async API#108
TheZouave007 wants to merge 2 commits intotsoding:mainfrom
TheZouave007:improve-async-api

Conversation

@TheZouave007
Copy link
Copy Markdown

The API of nob__proc_wait_async is improved by moving out sleeps into a different function. This supports checking all of the handles in a Nob_Procs structure without any delay.

The previous implementation will take 14 milliseconds to check to the 15th procedure in the Nob_Procs struct because each check would spend a millisecond either sleeping or timing out. By decoupling checking if a process is finished from sleeping, the API is improved and control is gained.

This also creates the function nob_sleep_nanos.

@rexim
Copy link
Copy Markdown
Member

rexim commented Jan 13, 2026

Closed due to "No changes to the public API" policy

@rexim rexim closed this Jan 13, 2026
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