File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ internal Future(FutureAPIImpl<T> impl) {
71
71
/// <param name="tcs">Tcs.</param>
72
72
internal IEnumerator WaitForResult ( TaskCompletionSource < T > tcs ) {
73
73
yield return new WaitUntil ( ( ) => ! Pending ) ;
74
+ yield return null ;
74
75
if ( Status == GoogleSignInStatusCode . CANCELED ) {
75
76
tcs . SetCanceled ( ) ;
76
77
} else if ( Status == GoogleSignInStatusCode . SUCCESS ||
@@ -84,6 +85,7 @@ internal IEnumerator WaitForResult(TaskCompletionSource<T> tcs) {
84
85
internal async Task WaitForResultAsync ( TaskCompletionSource < T > tcs )
85
86
{
86
87
while ( Pending ) await Task . Yield ( ) ;
88
+ await Task . Yield ( ) ;
87
89
if ( Status == GoogleSignInStatusCode . CANCELED ) {
88
90
tcs . SetCanceled ( ) ;
89
91
} else if ( Status == GoogleSignInStatusCode . SUCCESS ||
@@ -94,4 +96,4 @@ internal async Task WaitForResultAsync(TaskCompletionSource<T> tcs)
94
96
}
95
97
}
96
98
}
97
- }
99
+ }
You can’t perform that action at this time.
0 commit comments