# process.try_wait ## Function Non-blocking check to see if the started child process has exited. ## Syntax ```bt process(program).child().try_wait() ``` ## Parameters No parameters. ## Return value | Type | Description | | ------ | ------ | | Int/Empty | Returns the exit code if exited; returns Empty if it is still running or has no child process handle. | ## Example ```bt cmd = process('cmd') result = cmd.try_wait() // Output: print result ``` ## Notes - try_wait does not block waiting for the process to end.