Kaynağa Gözat

Rename callback blocks to completion to support Swift async and await

Matthew Mathias 3 yıl önce
ebeveyn
işleme
a66a7668b5
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      GoogleSignIn/Sources/GIDAuthentication.m

+ 1 - 1
GoogleSignIn/Sources/GIDAuthentication.m

@@ -219,7 +219,7 @@ static NSString *const kNewIOSSystemName = @"iOS";
   return authorization;
 }
 
-- (void)doWithFreshTokens:(GIDAuthenticationCompletion)completion {
+- (void)doWithFreshTokens:(GIDAuthenticationAction)completion {
   if (!([self.accessTokenExpirationDate timeIntervalSinceNow] < kMinimalTimeToExpire ||
       (self.idToken && [self.idTokenExpirationDate timeIntervalSinceNow] < kMinimalTimeToExpire))) {
     dispatch_async(dispatch_get_main_queue(), ^{