mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Expose the async nature of the ClientProxy startSync method
This commit is contained in:
@@ -2462,11 +2462,11 @@ class ClientProxyMock: ClientProxyProtocol, @unchecked Sendable {
|
||||
var startSyncCalled: Bool {
|
||||
return startSyncCallsCount > 0
|
||||
}
|
||||
var startSyncClosure: (() -> Void)?
|
||||
var startSyncClosure: (() async -> Void)?
|
||||
|
||||
func startSync() {
|
||||
func startSync() async {
|
||||
startSyncCallsCountLock.withLock { startSyncUnderlyingCallsCount += 1 }
|
||||
startSyncClosure?()
|
||||
await startSyncClosure?()
|
||||
}
|
||||
//MARK: - stopSync
|
||||
|
||||
|
||||
Reference in New Issue
Block a user