Skip to content

Commit aee6c41

Browse files
Revert "GULMutableDictionary: use dispatch_sync instead of async." (#3337)
* Revert "GULMutableDictionary: use `dispatch_sync` instead of `async`. (#3322)" This reverts commit f7c88f1. * GoogleUtilities 6.2.3
1 parent 6d03dfd commit aee6c41

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

GoogleUtilities.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'GoogleUtilities'
3-
s.version = '6.2.2'
3+
s.version = '6.2.3'
44
s.summary = 'Google Utilities for iOS (plus community support for macOS and tvOS)'
55

66
s.description = <<-DESC

GoogleUtilities/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 6.2.3
2+
- Revert "Fix `GULMutableDictionary` thread-safety." (#3322)
3+
14
# 6.2.2
25
- Add explicit Foundation import for headers.
36
- Fix headers import. (#3277)

GoogleUtilities/Network/GULMutableDictionary.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ - (id)objectForKey:(id)key {
5151
}
5252

5353
- (void)setObject:(id)object forKey:(id<NSCopying>)key {
54-
dispatch_sync(_queue, ^{
54+
dispatch_async(_queue, ^{
5555
self->_objects[key] = object;
5656
});
5757
}
5858

5959
- (void)removeObjectForKey:(id)key {
60-
dispatch_sync(_queue, ^{
60+
dispatch_async(_queue, ^{
6161
[self->_objects removeObjectForKey:key];
6262
});
6363
}
6464

6565
- (void)removeAllObjects {
66-
dispatch_sync(_queue, ^{
66+
dispatch_async(_queue, ^{
6767
[self->_objects removeAllObjects];
6868
});
6969
}

0 commit comments

Comments
 (0)