Address effect cancellation sendability (#3326)

* Address effect cancellation sendability

* fix

* wip

* wip
This commit is contained in:
Stephen Celis
2024-08-30 09:15:35 -07:00
committed by GitHub
parent 63b078029a
commit 890d2ee96f
4 changed files with 85 additions and 75 deletions

View File

@@ -16,7 +16,7 @@ let storeSuite = BenchmarkSuite(name: "Store") { suite in
}
} tearDown: {
precondition(count(of: store.withState { $0 }, level: level) == 1)
_cancellationCancellables.removeAll()
_cancellationCancellables.withValue { $0.removeAll() }
}
}
for level in 1...levels {
@@ -28,7 +28,7 @@ let storeSuite = BenchmarkSuite(name: "Store") { suite in
}
} tearDown: {
precondition(count(of: store.withState { $0 }, level: level) == 0)
_cancellationCancellables.removeAll()
_cancellationCancellables.withValue { $0.removeAll() }
}
}
}