Contents

testingWaitExchangeReady#

Wait until an exchange entry is ready. Returns an error if updating the exchange failed.

Request:

The request must be a TestingWaitExchangeReadyRequest object.

Response:

On success, the result is an empty object.

Side effects:

May trigger an update of the exchange entry over the network, for example when forceUpdate is set.

interface TestingWaitExchangeReadyRequest {
  exchangeBaseUrl: string;

  // Do not stop waiting even when the exchange is
  // in an error state.
  noBail?: boolean;

  // Force waiting until an update really happened.
  forceUpdate?: boolean;

  // Only consider the exchange as ready if the
  // next auto-refresh is scheduled for the future.
  waitAutoRefresh?: boolean;
}