Skip to content

Commit 9d4350d

Browse files
No additional wait
1 parent b6a161a commit 9d4350d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

GoogleSignIn/Future.cs

-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ 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;
7574
if (Status == GoogleSignInStatusCode.CANCELED) {
7675
tcs.SetCanceled();
7776
} else if (Status == GoogleSignInStatusCode.SUCCESS ||
@@ -85,7 +84,6 @@ internal IEnumerator WaitForResult(TaskCompletionSource<T> tcs) {
8584
internal async Task WaitForResultAsync(TaskCompletionSource<T> tcs)
8685
{
8786
while (Pending) await Task.Yield();
88-
await Task.Yield();
8987
if (Status == GoogleSignInStatusCode.CANCELED) {
9088
tcs.SetCanceled();
9189
} else if (Status == GoogleSignInStatusCode.SUCCESS ||

0 commit comments

Comments
 (0)