where I can specify timeout for waiting API availability and timeout between retries?