Expose the async nature of the ClientProxy startSync method

This commit is contained in:
Stefan Ceriu
2026-06-04 11:03:32 +03:00
parent da5360c8e8
commit e4a7322250
4 changed files with 43 additions and 36 deletions
@@ -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