method
RedisClient.wait
wait(
numreplicas: number,
timeout: number
): Promise<number>;
Block until all write commands are acknowledged by at least the specified number of replicas
@param numreplicas
The number of replicas to wait for
@param timeout
The timeout in milliseconds (0 = wait forever)
@returns
Promise that resolves with the number of replicas that acknowledged the writes