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 f8fe8d4 commit 6e732a5Copy full SHA for 6e732a5
Sources/Realtime/V2/RealtimeClientV2.swift
@@ -8,7 +8,6 @@
8
import ConcurrencyExtras
9
import Foundation
10
@_spi(Internal) import _Helpers
11
-import Dispatch
12
13
#if canImport(FoundationNetworking)
14
import FoundationNetworking
@@ -242,7 +241,7 @@ public actor RealtimeClientV2 {
242
241
guard let self else { return }
243
244
while !Task.isCancelled {
245
- try? await Task.sleep(nanoseconds: NSEC_PER_SEC * UInt64(config.heartbeatInterval))
+ try? await Task.sleep(nanoseconds: 1_000_000_000 * UInt64(config.heartbeatInterval))
246
if Task.isCancelled {
247
break
248
}
0 commit comments