class Aws::Waiters::Poller
def call(options = {})
-
(Array-)
Options Hash:
(**options)-
:params(required, Hash) -- -
:client(required, Client) --
Other tags:
- Example: A trival (bad) example of a waiter that polls indefinetly. -
def call(options = {}) response = send_request(options) @acceptors.each do |acceptor| if acceptor_matches?(acceptor, response) return [acceptor['state'].to_sym, response] end end [response.error ? :error : :retry, response] end