Fix Swift 6.4 warnings (#6240)

This commit is contained in:
Mauro
2026-10-01 10:55:19 +02:00
committed by GitHub
parent 99c0fa5729
commit 831234865b
28 changed files with 71 additions and 69 deletions
@@ -34,12 +34,12 @@ class TemplateScreenViewModel: TemplateScreenViewModelType, TemplateScreenViewMo
MXLog.info("View model: composer text changed to: \(state.bindings.composerText)")
case .incrementCounter:
Task {
try await Task.sleep(for: .seconds(.random(in: 1.0...2.0)))
try? await Task.sleep(for: .seconds(.random(in: 1.0...2.0)))
state.counter += 1
}
case .decrementCounter:
Task {
try await Task.sleep(for: .seconds(.random(in: 1.0...2.0)))
try? await Task.sleep(for: .seconds(.random(in: 1.0...2.0)))
state.counter -= 1
}
}