{"action":"created","comment":{"url":"https://api.github.com/repos/App-vNext/Polly/pulls/comments/47170081","id":47170081,"diff_hunk":"@@ -119,9 +198,23 @@ public static Policy RetryForeverAsync(this PolicyBuilder policyBuilder, Action<\n         /// <returns>The policy instance.</returns>\n         public static Policy WaitAndRetryAsync(this PolicyBuilder policyBuilder, IEnumerable<TimeSpan> sleepDurations)\n         {\n+            return WaitAndRetryAsync(policyBuilder, false, sleepDurations);\n+        }\n+\n+        /// <summary>\n+        ///     Builds a <see cref=\"Policy\" /> that will wait and retry as many times as there are provided\n+        ///     <paramref name=\"sleepDurations\" />\n+        ///     On each retry, the duration to wait is the current <paramref name=\"sleepDurations\" /> item.\n+        /// </summary>\n+        /// <param name=\"policyBuilder\">The policy builder.</param>\n+        /// <param name=\"continueOnCapturedContext\">Whether to continue on a captured synchronization context.</param>\n+        /// <param name=\"sleepDurations\">The sleep durations to wait for on each retry.</param>\n+        /// <returns>The policy instance.</returns>\n+        public static Policy WaitAndRetryAsync(this PolicyBuilder policyBuilder, bool continueOnCapturedContext, IEnumerable<TimeSpan> sleepDurations)","path":"src/Polly.Shared/RetrySyntaxAsync.cs","position":168,"original_position":168,"commit_id":"075792f601850a2ba209017a08c52aa70db89834","original_commit_id":"075792f601850a2ba209017a08c52aa70db89834","user":{"login":"reisenberger","id":9608723,"avatar_url":"https://avatars.githubusercontent.com/u/9608723?v=3","gravatar_id":"","url":"https://api.github.com/users/reisenberger","html_url":"https://github.com/reisenberger","followers_url":"https://api.github.com/users/reisenberger/followers","following_url":"https://api.github.com/users/reisenberger/following{/other_user}","gists_url":"https://api.github.com/users/reisenberger/gists{/gist_id}","starred_url":"https://api.github.com/users/reisenberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reisenberger/subscriptions","organizations_url":"https://api.github.com/users/reisenberger/orgs","repos_url":"https://api.github.com/users/reisenberger/repos","events_url":"https://api.github.com/users/reisenberger/events{/privacy}","received_events_url":"https://api.github.com/users/reisenberger/received_events","type":"User","site_admin":false},"body":"Per previous discussion, move `bool continueOnCapturedContext` to after `sleepDurations`","created_at":"2015-12-09T23:36:37Z","updated_at":"2015-12-09T23:36:37Z","html_url":"https://github.com/App-vNext/Polly/pull/53#discussion_r47170081","pull_request_url":"https://api.github.com/repos/App-vNext/Polly/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/App-vNext/Polly/pulls/comments/47170081"},"html":{"href":"https://github.com/App-vNext/Polly/pull/53#discussion_r47170081"},"pull_request":{"href":"https://api.github.com/repos/App-vNext/Polly/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/App-vNext/Polly/pulls/53","id":50884376,"html_url":"https://github.com/App-vNext/Polly/pull/53","diff_url":"https://github.com/App-vNext/Polly/pull/53.diff","patch_url":"https://github.com/App-vNext/Polly/pull/53.patch","issue_url":"https://api.github.com/repos/App-vNext/Polly/issues/53","number":53,"state":"open","locked":false,"title":"Async sleep + continue on captured ctx. Fixes #49","user":{"login":"yevhen","id":107726,"avatar_url":"https://avatars.githubusercontent.com/u/107726?v=3","gravatar_id":"","url":"https://api.github.com/users/yevhen","html_url":"https://github.com/yevhen","followers_url":"https://api.github.com/users/yevhen/followers","following_url":"https://api.github.com/users/yevhen/following{/other_user}","gists_url":"https://api.github.com/users/yevhen/gists{/gist_id}","starred_url":"https://api.github.com/users/yevhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yevhen/subscriptions","organizations_url":"https://api.github.com/users/yevhen/orgs","repos_url":"https://api.github.com/users/yevhen/repos","events_url":"https://api.github.com/users/yevhen/events{/privacy}","received_events_url":"https://api.github.com/users/yevhen/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T23:46:50Z","updated_at":"2015-12-09T23:36:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"305a4ba1a0cbada4ee6dbcc99a0718b2f49a903b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/App-vNext/Polly/pulls/53/commits","review_comments_url":"https://api.github.com/repos/App-vNext/Polly/pulls/53/comments","review_comment_url":"https://api.github.com/repos/App-vNext/Polly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/App-vNext/Polly/issues/53/comments","statuses_url":"https://api.github.com/repos/App-vNext/Polly/statuses/075792f601850a2ba209017a08c52aa70db89834","head":{"label":"yevhen:master","ref":"master","sha":"075792f601850a2ba209017a08c52aa70db89834","user":{"login":"yevhen","id":107726,"avatar_url":"https://avatars.githubusercontent.com/u/107726?v=3","gravatar_id":"","url":"https://api.github.com/users/yevhen","html_url":"https://github.com/yevhen","followers_url":"https://api.github.com/users/yevhen/followers","following_url":"https://api.github.com/users/yevhen/following{/other_user}","gists_url":"https://api.github.com/users/yevhen/gists{/gist_id}","starred_url":"https://api.github.com/users/yevhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yevhen/subscriptions","organizations_url":"https://api.github.com/users/yevhen/orgs","repos_url":"https://api.github.com/users/yevhen/repos","events_url":"https://api.github.com/users/yevhen/events{/privacy}","received_events_url":"https://api.github.com/users/yevhen/received_events","type":"User","site_admin":false},"repo":{"id":45006639,"name":"Polly","full_name":"yevhen/Polly","owner":{"login":"yevhen","id":107726,"avatar_url":"https://avatars.githubusercontent.com/u/107726?v=3","gravatar_id":"","url":"https://api.github.com/users/yevhen","html_url":"https://github.com/yevhen","followers_url":"https://api.github.com/users/yevhen/followers","following_url":"https://api.github.com/users/yevhen/following{/other_user}","gists_url":"https://api.github.com/users/yevhen/gists{/gist_id}","starred_url":"https://api.github.com/users/yevhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yevhen/subscriptions","organizations_url":"https://api.github.com/users/yevhen/orgs","repos_url":"https://api.github.com/users/yevhen/repos","events_url":"https://api.github.com/users/yevhen/events{/privacy}","received_events_url":"https://api.github.com/users/yevhen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yevhen/Polly","description":"Polly is a .NET 3.5 / 4.0 / 4.5 / PCL library that allows developers to express transient exception handling policies such as Retry, Retry Forever, Wait and Retry or Circuit Breaker in a fluent manner.","fork":true,"url":"https://api.github.com/repos/yevhen/Polly","forks_url":"https://api.github.com/repos/yevhen/Polly/forks","keys_url":"https://api.github.com/repos/yevhen/Polly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yevhen/Polly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yevhen/Polly/teams","hooks_url":"https://api.github.com/repos/yevhen/Polly/hooks","issue_events_url":"https://api.github.com/repos/yevhen/Polly/issues/events{/number}","events_url":"https://api.github.com/repos/yevhen/Polly/events","assignees_url":"https://api.github.com/repos/yevhen/Polly/assignees{/user}","branches_url":"https://api.github.com/repos/yevhen/Polly/branches{/branch}","tags_url":"https://api.github.com/repos/yevhen/Polly/tags","blobs_url":"https://api.github.com/repos/yevhen/Polly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yevhen/Polly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yevhen/Polly/git/refs{/sha}","trees_url":"https://api.github.com/repos/yevhen/Polly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yevhen/Polly/statuses/{sha}","languages_url":"https://api.github.com/repos/yevhen/Polly/languages","stargazers_url":"https://api.github.com/repos/yevhen/Polly/stargazers","contributors_url":"https://api.github.com/repos/yevhen/Polly/contributors","subscribers_url":"https://api.github.com/repos/yevhen/Polly/subscribers","subscription_url":"https://api.github.com/repos/yevhen/Polly/subscription","commits_url":"https://api.github.com/repos/yevhen/Polly/commits{/sha}","git_commits_url":"https://api.github.com/repos/yevhen/Polly/git/commits{/sha}","comments_url":"https://api.github.com/repos/yevhen/Polly/comments{/number}","issue_comment_url":"https://api.github.com/repos/yevhen/Polly/issues/comments{/number}","contents_url":"https://api.github.com/repos/yevhen/Polly/contents/{+path}","compare_url":"https://api.github.com/repos/yevhen/Polly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yevhen/Polly/merges","archive_url":"https://api.github.com/repos/yevhen/Polly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yevhen/Polly/downloads","issues_url":"https://api.github.com/repos/yevhen/Polly/issues{/number}","pulls_url":"https://api.github.com/repos/yevhen/Polly/pulls{/number}","milestones_url":"https://api.github.com/repos/yevhen/Polly/milestones{/number}","notifications_url":"https://api.github.com/repos/yevhen/Polly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yevhen/Polly/labels{/name}","releases_url":"https://api.github.com/repos/yevhen/Polly/releases{/id}","created_at":"2015-10-27T00:27:07Z","updated_at":"2015-10-27T00:27:09Z","pushed_at":"2015-11-16T23:45:44Z","git_url":"git://github.com/yevhen/Polly.git","ssh_url":"git@github.com:yevhen/Polly.git","clone_url":"https://github.com/yevhen/Polly.git","svn_url":"https://github.com/yevhen/Polly","homepage":"","size":906,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"App-vNext:master","ref":"master","sha":"caf77f627207324fabe9e9c64ea0baf0d0c75c2c","user":{"login":"App-vNext","id":9165070,"avatar_url":"https://avatars.githubusercontent.com/u/9165070?v=3","gravatar_id":"","url":"https://api.github.com/users/App-vNext","html_url":"https://github.com/App-vNext","followers_url":"https://api.github.com/users/App-vNext/followers","following_url":"https://api.github.com/users/App-vNext/following{/other_user}","gists_url":"https://api.github.com/users/App-vNext/gists{/gist_id}","starred_url":"https://api.github.com/users/App-vNext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/App-vNext/subscriptions","organizations_url":"https://api.github.com/users/App-vNext/orgs","repos_url":"https://api.github.com/users/App-vNext/repos","events_url":"https://api.github.com/users/App-vNext/events{/privacy}","received_events_url":"https://api.github.com/users/App-vNext/received_events","type":"Organization","site_admin":false},"repo":{"id":9864166,"name":"Polly","full_name":"App-vNext/Polly","owner":{"login":"App-vNext","id":9165070,"avatar_url":"https://avatars.githubusercontent.com/u/9165070?v=3","gravatar_id":"","url":"https://api.github.com/users/App-vNext","html_url":"https://github.com/App-vNext","followers_url":"https://api.github.com/users/App-vNext/followers","following_url":"https://api.github.com/users/App-vNext/following{/other_user}","gists_url":"https://api.github.com/users/App-vNext/gists{/gist_id}","starred_url":"https://api.github.com/users/App-vNext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/App-vNext/subscriptions","organizations_url":"https://api.github.com/users/App-vNext/orgs","repos_url":"https://api.github.com/users/App-vNext/repos","events_url":"https://api.github.com/users/App-vNext/events{/privacy}","received_events_url":"https://api.github.com/users/App-vNext/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/App-vNext/Polly","description":"Polly is a .NET 3.5 / 4.0 / 4.5 / PCL library that allows developers to express transient exception handling policies such as Retry, Retry Forever, Wait and Retry or Circuit Breaker in a fluent manner.","fork":false,"url":"https://api.github.com/repos/App-vNext/Polly","forks_url":"https://api.github.com/repos/App-vNext/Polly/forks","keys_url":"https://api.github.com/repos/App-vNext/Polly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/App-vNext/Polly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/App-vNext/Polly/teams","hooks_url":"https://api.github.com/repos/App-vNext/Polly/hooks","issue_events_url":"https://api.github.com/repos/App-vNext/Polly/issues/events{/number}","events_url":"https://api.github.com/repos/App-vNext/Polly/events","assignees_url":"https://api.github.com/repos/App-vNext/Polly/assignees{/user}","branches_url":"https://api.github.com/repos/App-vNext/Polly/branches{/branch}","tags_url":"https://api.github.com/repos/App-vNext/Polly/tags","blobs_url":"https://api.github.com/repos/App-vNext/Polly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/App-vNext/Polly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/App-vNext/Polly/git/refs{/sha}","trees_url":"https://api.github.com/repos/App-vNext/Polly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/App-vNext/Polly/statuses/{sha}","languages_url":"https://api.github.com/repos/App-vNext/Polly/languages","stargazers_url":"https://api.github.com/repos/App-vNext/Polly/stargazers","contributors_url":"https://api.github.com/repos/App-vNext/Polly/contributors","subscribers_url":"https://api.github.com/repos/App-vNext/Polly/subscribers","subscription_url":"https://api.github.com/repos/App-vNext/Polly/subscription","commits_url":"https://api.github.com/repos/App-vNext/Polly/commits{/sha}","git_commits_url":"https://api.github.com/repos/App-vNext/Polly/git/commits{/sha}","comments_url":"https://api.github.com/repos/App-vNext/Polly/comments{/number}","issue_comment_url":"https://api.github.com/repos/App-vNext/Polly/issues/comments{/number}","contents_url":"https://api.github.com/repos/App-vNext/Polly/contents/{+path}","compare_url":"https://api.github.com/repos/App-vNext/Polly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/App-vNext/Polly/merges","archive_url":"https://api.github.com/repos/App-vNext/Polly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/App-vNext/Polly/downloads","issues_url":"https://api.github.com/repos/App-vNext/Polly/issues{/number}","pulls_url":"https://api.github.com/repos/App-vNext/Polly/pulls{/number}","milestones_url":"https://api.github.com/repos/App-vNext/Polly/milestones{/number}","notifications_url":"https://api.github.com/repos/App-vNext/Polly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/App-vNext/Polly/labels{/name}","releases_url":"https://api.github.com/repos/App-vNext/Polly/releases{/id}","created_at":"2013-05-05T04:40:04Z","updated_at":"2015-12-09T17:21:22Z","pushed_at":"2015-12-09T17:51:46Z","git_url":"git://github.com/App-vNext/Polly.git","ssh_url":"git@github.com:App-vNext/Polly.git","clone_url":"https://github.com/App-vNext/Polly.git","svn_url":"https://github.com/App-vNext/Polly","homepage":"","size":1044,"stargazers_count":1121,"watchers_count":1121,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"open_issues_count":25,"forks":105,"open_issues":25,"watchers":1121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/App-vNext/Polly/pulls/53"},"html":{"href":"https://github.com/App-vNext/Polly/pull/53"},"issue":{"href":"https://api.github.com/repos/App-vNext/Polly/issues/53"},"comments":{"href":"https://api.github.com/repos/App-vNext/Polly/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/App-vNext/Polly/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/App-vNext/Polly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/App-vNext/Polly/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/App-vNext/Polly/statuses/075792f601850a2ba209017a08c52aa70db89834"}}}}