wait
ReQL command: wait
Command syntax
table.wait([{:wait_for => 'all_replicas_ready', :timeout => <sec>}]) → object database.wait([{:wait_for => 'all_replicas_ready', :timeout => <sec>}]) → object r.wait(table | database, [{:wait_for => 'all_replicas_ready', :timeout => <sec>}]) → object
Description
Wait for a table (or tables) to be ready. A table may be temporarily unavailable after creation, rebalancing or reconfiguring.
The wait
command takes two optional arguments:
-
wait_for
: a string indicating a table status to wait on before returning, one ofready_for_outdated_reads
,ready_for_re