sh.waitForPingChange()
Definition
sh.
waitForPingChange
(activePings, timeout, interval)sh.waitForPingChange()
waits for a change in ping stateof one of theactivepings
, and only returns when the specifiedping changes state.
ParameterTypeDescriptionactivePings
arrayAn array of active pings from the mongos
collection.timeout
integerNumber of milliseconds to wait for a change in ping state.interval
integerNumber of milliseconds to sleep in each waiting cycle.