function · Added in 3.3Unixnot WASInot Androidnot iOS
waitid(idtype, id, options, /)
Returns the result of waiting for a process or processes.
idtype
Must be one of be P_PID, P_PGID or P_ALL.
id
The id to wait on.
options
Constructed from the ORing of one or more of WEXITED, WSTOPPED
or WCONTINUED and additionally may be ORed with WNOHANG or WNOWAIT.
Returns either waitid_result or None if WNOHANG is specified and there
are no children in a waitable state.