Skip to content

Commit 8b86829

Browse files
committed
Fixed bug in variable name
1 parent 05611b2 commit 8b86829

13 files changed

+21
-21
lines changed

Sources/AsyncLocationKit/AnyLocationPerformer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import Foundation
2525
protocol AnyLocationPerformer: AnyObject {
2626
var typeIdentifier: ObjectIdentifier { get }
2727
var uniqueIdentifier: UUID { get }
28-
var cancellabel: Cancellabel? { get set }
28+
var cancellable: Cancellable? { get set }
2929

3030
func eventSupported(_ event: CoreLocationDelegateEvent) -> Bool
3131
func invokedMethod(event: CoreLocationDelegateEvent)

Sources/AsyncLocationKit/AsyncDelegateProxy.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Foundation
2424

2525
typealias CancelationCondition = ((AnyLocationPerformer) -> Bool)
2626

27-
protocol Cancellabel: AnyObject {
27+
protocol Cancellable: AnyObject {
2828
/// # Performer can use CheckecContinuation
2929
/// # who can return value only **once**, and next attempt will lead to **crash** application
3030
/// ```swift
@@ -73,7 +73,7 @@ final class AsyncDelegateProxy: AsyncDelegateProxyInterface {
7373
}
7474

7575
func addPerformer(_ performer: AnyLocationPerformer) {
76-
performer.cancellabel = self
76+
performer.cancellable = self
7777
performers.append(performer)
7878
}
7979

@@ -101,7 +101,7 @@ final class AsyncDelegateProxy: AsyncDelegateProxyInterface {
101101
}
102102
}
103103

104-
extension AsyncDelegateProxy: Cancellabel {
104+
extension AsyncDelegateProxy: Cancellable {
105105
func cancel(for performer: AnyLocationPerformer) {
106106
performers.removeAll(where: { $0.uniqueIdentifier == performer.uniqueIdentifier })
107107
}

Sources/AsyncLocationKit/Performers/AccuracyAuthorizationMonitoringPerformer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AccuracyAuthorizationMonitoringPerformer: AnyLocationPerformer {
3434

3535
var uniqueIdentifier: UUID = UUID()
3636

37-
var cancellabel: Cancellabel?
37+
var cancellable: Cancellable?
3838
var eventsSupport: [CoreLocationEventSupport] = [.didChangeAccuracyAuthorization]
3939
var stream: AccuracyAuthorizationStream.Continuation?
4040

Sources/AsyncLocationKit/Performers/AccuracyAuthorizationPerformer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RequestAccuracyAuthorizationPerformer: AnyLocationPerformer {
3434

3535
var continuation: AccuracyAuthorizationContinuation?
3636

37-
weak var cancellabel: Cancellabel?
37+
weak var cancellable: Cancellable?
3838

3939
func linkContinuation(_ continuation: AccuracyAuthorizationContinuation) {
4040
self.continuation = continuation
@@ -47,10 +47,10 @@ class RequestAccuracyAuthorizationPerformer: AnyLocationPerformer {
4747
func invokedMethod(event: CoreLocationDelegateEvent) {
4848
switch event {
4949
case .didChangeAccuracyAuthorization(let authorization):
50-
guard let continuation = continuation else { cancellabel?.cancel(for: self); return }
50+
guard let continuation = continuation else { cancellable?.cancel(for: self); return }
5151
continuation.resume(returning: authorization)
5252
self.continuation = nil
53-
cancellabel?.cancel(for: self)
53+
cancellable?.cancel(for: self)
5454
default:
5555
fatalError("Method can't be execute by this performer: \(String(describing: self)) for event: \(type(of: event))")
5656
}

Sources/AsyncLocationKit/Performers/AuthorizationMonitoringPerformer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AuthorizationMonitoringPerformer: AnyLocationPerformer {
3434

3535
var uniqueIdentifier: UUID = UUID()
3636

37-
var cancellabel: Cancellabel?
37+
var cancellable: Cancellable?
3838
var eventsSupport: [CoreLocationEventSupport] = [.didChangeAuthorization]
3939
var stream: AuthorizationStream.Continuation?
4040

Sources/AsyncLocationKit/Performers/AuthorizationPerformer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class RequestAuthorizationPerformer: AnyLocationPerformer {
4141

4242
var continuation: AuthotizationContinuation?
4343

44-
weak var cancellabel: Cancellabel?
44+
weak var cancellable: Cancellable?
4545

4646
func linkContinuation(_ continuation: AuthotizationContinuation) {
4747
self.continuation = continuation
@@ -81,10 +81,10 @@ class RequestAuthorizationPerformer: AnyLocationPerformer {
8181
_ = await applicationStateMonitor.hasBecomeActive()
8282
}
8383

84-
guard let continuation = continuation else { cancellabel?.cancel(for: self); return }
84+
guard let continuation = continuation else { cancellable?.cancel(for: self); return }
8585
continuation.resume(returning: status)
8686
self.continuation = nil
87-
cancellabel?.cancel(for: self)
87+
cancellable?.cancel(for: self)
8888
}
8989
}
9090
default:

Sources/AsyncLocationKit/Performers/BeaconsRangePerformer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BeaconsRangePerformer: AnyLocationPerformer {
3838

3939
var uniqueIdentifier: UUID = UUID()
4040

41-
var cancellabel: Cancellabel?
41+
var cancellable: Cancellable?
4242

4343
var eventssupported: [CoreLocationEventSupport] = [.didRangeBeacons, .didFailRanginForBeaconConstraint]
4444

Sources/AsyncLocationKit/Performers/HeadingMonitorPerformer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class HeadingMonitorPerformer: AnyLocationPerformer {
3636

3737
var uniqueIdentifier: UUID = UUID()
3838

39-
var cancellabel: Cancellabel?
39+
var cancellable: Cancellable?
4040
var eventsSupport: [CoreLocationEventSupport] = [.didUpdateHeading, .didFailWithError]
4141
var stream: HeadingMonitorStream.Continuation?
4242

Sources/AsyncLocationKit/Performers/LocationEnabledMonitoringPerformer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class LocationEnabledMonitoringPerformer: AnyLocationPerformer {
3434

3535
var uniqueIdentifier: UUID = UUID()
3636

37-
var cancellabel: Cancellabel?
37+
var cancellable: Cancellable?
3838
var eventsSupport: [CoreLocationEventSupport] = [.didChangeLocationEnabled]
3939
var stream: LocationEnabledStream.Continuation?
4040

Sources/AsyncLocationKit/Performers/MonitoringUpdateLocationPerformer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class MonitoringUpdateLocationPerformer: AnyLocationPerformer {
3939

4040
var eventsSupport: [CoreLocationEventSupport] = [.didUpdateLocations, .locationUpdatesPaused, .locationUpdatesResume, .didFailWithError]
4141

42-
var cancellabel: Cancellabel?
42+
var cancellable: Cancellable?
4343
var stream: LocationStream.Continuation?
4444

4545
func linkContinuation(_ continuation: LocationStream.Continuation) {

0 commit comments

Comments
 (0)