Throttles the GitHubAppsClient
when AbuseException
or RateLimitExceededException
is received.
Syntax
public static Task<T> ThrottleAsync<T>(this GitHubClient client, Func<GitHubClient, Task<T>> operation, IExecutionContext context)
Adapted from https://github.com/octokit/octokit.net/issues/1792#issue-311651300, see that issue for a more detailed discussion.
Type Parameters
Parameters
Name |
Type |
Description |
client |
GitHubClient |
|
operation |
Func<GitHubClient, Task<T>> |
|
context |
IExecutionContext |
|
Return Value