public virtual IResult<List<IndexInfo>> WatchN1qlIndexes(List<string> indexNames, TimeSpan watchTimeout) { IndexResult result; var stopwatch = Stopwatch.StartNew(); do { result = ListN1qlIndexes(); if (!ShouldRetryWatch(result, indexNames)) { break; } Thread.Sleep(WatchIndexSleepDuration); } while (stopwatch.Elapsed < watchTimeout); return result; }