wait_for_response

Function wait_for_response 

Source
pub async fn wait_for_response(
    rx: Receiver<UserInputResponse>,
    timeout: Duration,
) -> Result<UserInputResponse, String>
Expand description

Wait for a user input response with timeout.