You are here

public function GeocoderThrottleInterface::waitForAvailability in Geocoder 8.3

Sleeps until the throttle rate is not reached anymore.

Parameters

string $key: An identifier for the service where we send the requests.

array|null $throttle_info: An associative array with:

  • period: in seconds
  • limit: number of requests allowed in the period

or null not to limit the requests.

Return value

void|NULL

1 method overrides GeocoderThrottleInterface::waitForAvailability()
GeocoderThrottle::waitForAvailability in src/GeocoderThrottle.php
Sleeps until the throttle rate is not reached anymore.

File

src/GeocoderThrottleInterface.php, line 23

Class

GeocoderThrottleInterface
Provides a geocoder throttle interface.

Namespace

Drupal\geocoder

Code

public function waitForAvailability(string $key, array $throttle_info);