- Reference >
- JavaScript Methods >
- sh.waitForPingChange()
sh.waitForPingChange()¶
-
sh.
waitForPingChange
(activepings, timeout, interval)¶ Parameters: - activepings (array) – An array of active pings from the
config.mongos
collection. - timeout (integer) – Milliseconds to wait for a change in ping state.
- interval (integer) – Milliseconds to sleep in each waiting cycle.
sh.waitForPingChange()
waits for a change in ping state of the one of theactivepings
.- activepings (array) – An array of active pings from the