File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,16 +119,18 @@ pub fn with<T: AsRef<OsStr>>(path: T, app: impl Into<String>) -> io::Result<()>
119119 os:: with ( path, app)
120120}
121121
122- /// Open path with the default application in a new thread, which is useful if
123- /// the program ends up to be blocking. Otherwise, prefer [`that()`].
122+ /// Open path with the default application in a new thread.
124123///
125124/// See documentation of [`that()`] for more details.
125+ #[ deprecated = "Use `that()` as it is non-blocking while making error handling easy." ]
126126pub fn that_in_background < T : AsRef < OsStr > > ( path : T ) -> thread:: JoinHandle < io:: Result < ( ) > > {
127127 let path = path. as_ref ( ) . to_os_string ( ) ;
128128 thread:: spawn ( || that ( path) )
129129}
130130
131- /// Open path with the given application in a new thread.
131+ /// Open path with the given application in a new thread, which is useful if
132+ /// the program ends up to be blocking. Otherwise, prefer [`with()`] for
133+ /// straightforward error handling.
132134///
133135/// See documentation of [`with()`] for more details.
134136pub fn with_in_background < T : AsRef < OsStr > > (
You can’t perform that action at this time.
0 commit comments