internal async Task RaiseRateLimitTriggered(string id, Bucket bucket, int millis) { await RateLimitTriggered.Invoke(id, bucket, millis).ConfigureAwait(false); }
private RequestQueueBucket CreateBucket(Bucket def) { var parent = def.Parent != null?GetGlobalBucket(def.Parent.Value) : null; return(new RequestQueueBucket(this, def, parent)); }