Skip to content

Commit 9eb064d

Browse files
committed
Update LocationManagerAsync.swift
1 parent 8d72b37 commit 9eb064d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/d3-async-location/LocationManagerAsync.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, IL
3030
}
3131

3232
/// Continuation to get permission if status is not defined
33-
private var permission : CheckedContinuation<CLAuthorizationStatus,Never>?
33+
private var permissionAwait : CheckedContinuation<CLAuthorizationStatus,Never>?
3434

3535
/// Location manager
3636
private let manager : CLLocationManager
@@ -104,7 +104,7 @@ public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, IL
104104

105105
/// Suspension point until we get permission from the user
106106
return await withCheckedContinuation{ continuation in
107-
permission = continuation
107+
permissionAwait = continuation
108108
}
109109

110110
}
@@ -151,6 +151,6 @@ public final class LocationManagerAsync: NSObject, CLLocationManagerDelegate, IL
151151
/// - Parameter manager: Location manager
152152
public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
153153
status = manager.authorizationStatus
154-
permission?.resume(returning: status)
154+
permissionAwait?.resume(returning: status)
155155
}
156156
}

0 commit comments

Comments
 (0)