In the standard library, Child::wait_with_output takes self. Since there's no way to get the Child from inside an InterruptibleChild, it's impossible to get the output without manually re-implementing the method.
Would be nice to be either able to unwrap the underlying Child, or, have a method on InterruptibleChild which consumed and forwarded to the inner method.
In the standard library,
Child::wait_with_outputtakesself. Since there's no way to get theChildfrom inside anInterruptibleChild, it's impossible to get the output without manually re-implementing the method.Would be nice to be either able to unwrap the underlying
Child, or, have a method onInterruptibleChildwhich consumed and forwarded to the inner method.