Wrap std::sys::windows::process::Process's main_thread_handle with Option<T>. #107144
Labels
A-process
Area: `std::process` and `std::env`
O-windows
Operating system: Windows
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
how about make main_thread_handle as Option?
Except creating a child process, it is difficult for us to get the main_thread_handle of another process. If we make this item Option, we could extend struct Process's use case. Such as building a process manager, which holds some process's handle without main_thread_handle.
Maybe related to #96723
The text was updated successfully, but these errors were encountered: