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.
1 parent 20fdbaa commit 16b8162Copy full SHA for 16b8162
swift-sdk/Internal/RequestHandlerProtocol.swift
@@ -5,7 +5,7 @@
5
import Foundation
6
7
/// `InternalIterableAPI` will delegate all network related calls to this protocol.
8
-protocol RequestHandlerProtocol: class {
+protocol RequestHandlerProtocol: AnyObject {
9
var offlineMode: Bool { get set }
10
11
func start()
tests/offline-events-tests/HealthMonitorTests.swift
@@ -67,7 +67,7 @@ class HealthMonitorTests: XCTestCase {
67
68
internalAPI.track("myEvent")
69
internalAPI.track("myEvent2").onSuccess { _ in
70
- DispatchQueue.main.async {
+ DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
71
internalAPI.track("myEvent3")
72
}
73
0 commit comments