@@ -2,7 +2,7 @@ internal import _AblyPluginSupportPrivate
22import Ably
33
44/// Protocol for accessing objects from the ObjectsPool. This is used by a LiveMap when it needs to return an object given an object ID.
5- internal protocol LiveMapObjectPoolDelegate : AnyObject , Sendable {
5+ internal protocol LiveMapObjectsPoolDelegate : AnyObject , Sendable {
66 /// A snapshot of the objects pool.
77 var nosync_objectsPool : ObjectsPool { get }
88}
@@ -121,7 +121,7 @@ internal final class InternalDefaultLiveMap: Sendable {
121121 // MARK: - Internal methods that back LiveMap conformance
122122
123123 /// Returns the value associated with a given key, following RTLM5d specification.
124- internal func get( key: String , coreSDK: CoreSDK , delegate: LiveMapObjectPoolDelegate ) throws ( ARTErrorInfo) -> InternalLiveMapValue ? {
124+ internal func get( key: String , coreSDK: CoreSDK , delegate: LiveMapObjectsPoolDelegate ) throws ( ARTErrorInfo) -> InternalLiveMapValue ? {
125125 try mutableStateMutex. withSync { mutableState throws ( ARTErrorInfo) in
126126 try mutableState. nosync_get (
127127 key: key,
@@ -131,7 +131,7 @@ internal final class InternalDefaultLiveMap: Sendable {
131131 }
132132 }
133133
134- internal func size( coreSDK: CoreSDK , delegate: LiveMapObjectPoolDelegate ) throws ( ARTErrorInfo) -> Int {
134+ internal func size( coreSDK: CoreSDK , delegate: LiveMapObjectsPoolDelegate ) throws ( ARTErrorInfo) -> Int {
135135 try mutableStateMutex. withSync { mutableState throws ( ARTErrorInfo) in
136136 try mutableState. nosync_size (
137137 coreSDK: coreSDK,
@@ -140,7 +140,7 @@ internal final class InternalDefaultLiveMap: Sendable {
140140 }
141141 }
142142
143- internal func entries( coreSDK: CoreSDK , delegate: LiveMapObjectPoolDelegate ) throws ( ARTErrorInfo) -> [ ( key: String , value: InternalLiveMapValue ) ] {
143+ internal func entries( coreSDK: CoreSDK , delegate: LiveMapObjectsPoolDelegate ) throws ( ARTErrorInfo) -> [ ( key: String , value: InternalLiveMapValue ) ] {
144144 try mutableStateMutex. withSync { mutableState throws ( ARTErrorInfo) in
145145 try mutableState. nosync_entries (
146146 coreSDK: coreSDK,
@@ -149,12 +149,12 @@ internal final class InternalDefaultLiveMap: Sendable {
149149 }
150150 }
151151
152- internal func keys( coreSDK: CoreSDK , delegate: LiveMapObjectPoolDelegate ) throws ( ARTErrorInfo) -> [ String ] {
152+ internal func keys( coreSDK: CoreSDK , delegate: LiveMapObjectsPoolDelegate ) throws ( ARTErrorInfo) -> [ String ] {
153153 // RTLM12b: Identical to LiveMap#entries, except that it returns only the keys from the internal data map
154154 try entries ( coreSDK: coreSDK, delegate: delegate) . map ( \. key)
155155 }
156156
157- internal func values( coreSDK: CoreSDK , delegate: LiveMapObjectPoolDelegate ) throws ( ARTErrorInfo) -> [ InternalLiveMapValue ] {
157+ internal func values( coreSDK: CoreSDK , delegate: LiveMapObjectsPoolDelegate ) throws ( ARTErrorInfo) -> [ InternalLiveMapValue ] {
158158 // RTLM13b: Identical to LiveMap#entries, except that it returns only the values from the internal data map
159159 try entries ( coreSDK: coreSDK, delegate: delegate) . map ( \. value)
160160 }
0 commit comments