-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document blocking behavior of open::that()
#51
Comments
Thanks for the hint! This is fixed in v3.0.2. |
|
Can you debug this? Sometimes I have a feeling it also depends on which launcher it actually picks to launch the program, and if the launcher doesn't spawn, |
@Byron it uses |
I ran into this same issue in my similar |
Thanks for sharing! I think I vaguely remember to have checked for flags, but If |
I would just change the docs/description, noting that some launchers might not return immediately. |
Thanks for sharing! It's a bit sad that getting this to work for cross-platform applications isn't straightforward. The best I can imagine is to find a way to check for a status code with timeout for launchers which are known to block. That way one can determine that it is launching the program and thus blocking while releasing the calling thread without blocking too long in the worst case. That way it might work in a correct fashion more often, and by default, even though I don't know if it's good enough to have somewhat racy behaviour builtin to the library. Maybe just assuming success the best choice all things considered. |
The docs for
open::that()
don't mention whether the function can block. However, the docs for the deprecatedopen::that_in_background()
say thatopen::that()
is always non-blocking. This information should be in the docs foropen::that()
.The text was updated successfully, but these errors were encountered: