Skip to content

Commit f5404e4

Browse files
Update Future.cs
seems it was needed...
1 parent 9d4350d commit f5404e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GoogleSignIn/Future.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ internal Future(FutureAPIImpl<T> impl) {
7171
/// <param name="tcs">Tcs.</param>
7272
internal IEnumerator WaitForResult(TaskCompletionSource<T> tcs) {
7373
yield return new WaitUntil(() => !Pending);
74+
yield return null;
7475
if (Status == GoogleSignInStatusCode.CANCELED) {
7576
tcs.SetCanceled();
7677
} else if (Status == GoogleSignInStatusCode.SUCCESS ||
@@ -84,6 +85,7 @@ internal IEnumerator WaitForResult(TaskCompletionSource<T> tcs) {
8485
internal async Task WaitForResultAsync(TaskCompletionSource<T> tcs)
8586
{
8687
while (Pending) await Task.Yield();
88+
await Task.Yield();
8789
if (Status == GoogleSignInStatusCode.CANCELED) {
8890
tcs.SetCanceled();
8991
} else if (Status == GoogleSignInStatusCode.SUCCESS ||
@@ -94,4 +96,4 @@ internal async Task WaitForResultAsync(TaskCompletionSource<T> tcs)
9496
}
9597
}
9698
}
97-
}
99+
}

0 commit comments

Comments
 (0)