Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 341877c

Browse files
committed
Throttle to get rid of jitter
1 parent 09d477f commit 341877c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.InlineReviews/Services/PullRequestStatusBarManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public void StartShowingStatus()
7070
var sessions = pullRequestSessionManager.Value.WhenAnyValue(x => x.CurrentSession);
7171
activeReposities
7272
.CombineLatest(sessions, (r, s) => (r, s))
73+
.Throttle(TimeSpan.FromSeconds(1))
7374
.ObserveOn(RxApp.MainThreadScheduler)
7475
.Subscribe(x => RefreshCurrentSession(x.r, x.s).Forget());
7576
}

0 commit comments

Comments
 (0)