pub async fn wait(self) -> Result<(bool, Option<i32>), RemoteProcessError> {
        // Wait for the process to complete before we try to get the status
        let _ = self.wait_task.await;

        // NOTE: If we haven't received an exit status, this lines up with the UnexpectedEof error
        self.status
            .write()
            .await
            .take()
            .unwrap_or(Err(RemoteProcessError::UnexpectedEof))
    }
/// Waits for the process to terminate, returning the success status and an optional exit code
Waits for the process to terminate, returning the success status and an optional exit code
Waits for the process to terminate returning the success status and an optional exit code
pub async fn wait(self) -> Result<(bool, Option<i32>), RemoteProcessError> {
        // Wait for the process to complete before we try to get the status
        let _ = self.wait_task.await;
        // NOTE: If we haven't received an exit status, this lines up with the UnexpectedEof error
        self.status
            .write()
            .await
            .take()
            .unwrap_or(Err(RemoteProcessError::UnexpectedEof))
    }
pub async fn wait ( self ) -> Result < ( bool , Option < i32 > ) , RemoteProcessError > { // Wait for the process to complete before we try to get the status let _ = self . wait_task . await ; // NOTE: If we haven't received an exit status, this lines up with the UnexpectedEof error self . status . write ( ) . await . take ( ) . unwrap_or ( Err ( RemoteProcessError :: UnexpectedEof ) ) }
Waits for the process to terminate, returning the success status and an optional exit code
Waits for the process to terminate returning the success status and an optional exit code
self