Function glib::source_futures::child_watch_future_with_priority
source ยท pub fn child_watch_future_with_priority(
priority: Priority,
pid: Pid,
) -> Pin<Box<dyn Future<Output = (Pid, i32)> + Send + 'static>>
Expand description
Create a Future
that will resolve once the child process with the given pid exits
The Future
will resolve to the pid of the child process and the exit code.
The Future
must be spawned on an Executor
backed by a glib::MainContext
.