File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 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) {
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+ }
You can’t perform that action at this time.
0 commit comments