We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cec1b2 + 522feaf commit 9325dbbCopy full SHA for 9325dbb
ios/AutomaticProperties.swift
@@ -3,10 +3,14 @@ import Mixpanel
3
4
class AutomaticProperties {
5
static var peopleProperties: Dictionary<String, MixpanelType> = [:];
6
+ private static let semaphore = DispatchSemaphore(value: 0)
7
+
8
9
static func setAutomaticProperties(_ properties: [String: Any]) {
- for (key,value) in properties ?? [:] {
10
+ semaphore.wait()
11
+ for (key,value) in properties {
12
peopleProperties[key] = MixpanelTypeHandler.mixpanelTypeValue(value)
13
}
14
+ semaphore.signal()
15
16
0 commit comments