Fix more Sendable warnings and flaky test (#281)

# Motivation
We still had some `Sendable` warnings left under strict Concurrency checking.

# Modification
This PR fixes a bunch of `Sendable` warnings but we still have some left in the validation tests. Additionally, I fixed a flaky test.
This commit is contained in:
Franz Busch authored and GitHub committed 2023-08-01 16:09:34 +01:00
1 parent f5d5fb6483
commit 7ac31f979f
6 files changed
+77 -14

No files matched your search

@@ -198,7 +198,7 @@ final class MergeStorage<
private func iterateAsyncSequence<AsyncSequence: _Concurrency.AsyncSequence>(
_ base: AsyncSequence,
in taskGroup: inout ThrowingTaskGroup<Void, Error>
) where AsyncSequence.Element == Base1.Element {
) where AsyncSequence.Element == Base1.Element, AsyncSequence: Sendable {
// For each upstream sequence we are adding a child task that
// is consuming the upstream sequence
taskGroup.addTask {