pub fn with_in_background<T: AsRef<OsStr>>( path: T, app: impl Into<String>) -> JoinHandle<Result<()>>
Open path with the given application in a new thread, which is useful if the program ends up to be blocking. Otherwise, prefer with() for straightforward error handling.
with()
See documentation of with() for more details.