MiPendingCommand.wait

MiResultRecord wait(Duration timeout = DEFAULT_COMMAND_TIMEOUT)

Waits for the command to complete.

Parameters

timeoutMaximum time to wait.

Returns

The MiResultRecord.

Throws

GdbTimeoutException on timeout, GdbCommandException on GDB error,

or rethrows other errors.

Example:

try {
  auto rr = pending.wait(dur!"seconds"(5));
} catch (GdbException e) { ... }