Skip to content

Commit 4701e2b

Browse files
committed
roll back to older sendable metatype constraints
1 parent 2b26771 commit 4701e2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AsyncAlgorithms/AsyncShareSequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import DequeModule
1616

1717
@available(AsyncAlgorithms 1.1, *)
1818
extension AsyncSequence
19-
where Element: Sendable, Self: AsyncSequenceSendableMetatype, AsyncIterator: AsyncIteratorSendableMetatype {
19+
where Element: Sendable, Self: SendableMetatype, AsyncIterator: SendableMetatype {
2020
/// Creates a shared async sequence that allows multiple concurrent iterations over a single source.
2121
///
2222
/// The `share` method transforms an async sequence into a shareable sequence that can be safely
@@ -116,7 +116,7 @@ where Element: Sendable, Self: AsyncSequenceSendableMetatype, AsyncIterator: Asy
116116
// async sequence that meets the sendability requirements.
117117
@available(AsyncAlgorithms 1.1, *)
118118
struct AsyncShareSequence<Base: AsyncSequence>: Sendable
119-
where Base.Element: Sendable, Base: AsyncSequenceSendableMetatype, Base.AsyncIterator: AsyncIteratorSendableMetatype {
119+
where Base.Element: Sendable, Base: SendableMetatype, Base.AsyncIterator: SendableMetatype {
120120
// Represents a single consumer's connection to the shared sequence.
121121
//
122122
// Each iterator of the shared sequence creates its own `Side` instance, which tracks

0 commit comments

Comments
 (0)