@@ -34,7 +34,7 @@ extension NotificationCenter {
34
34
of subject: Message . Subject ,
35
35
for identifier: Identifier ,
36
36
bufferSize limit: Int = 10
37
- ) -> some AsyncSequence < Message , Never > where Identifier. MessageType == Message , Message. Subject: AnyObject {
37
+ ) -> some AsyncSequence < Message , Never > & Sendable where Identifier. MessageType == Message , Message. Subject: AnyObject {
38
38
return AsyncMessageSequence < Message > ( self , subject, limit)
39
39
}
40
40
@@ -48,7 +48,7 @@ extension NotificationCenter {
48
48
of subject: Message . Subject . Type ,
49
49
for identifier: Identifier ,
50
50
bufferSize limit: Int = 10
51
- ) -> some AsyncSequence < Message , Never > where Identifier. MessageType == Message {
51
+ ) -> some AsyncSequence < Message , Never > & Sendable where Identifier. MessageType == Message {
52
52
return AsyncMessageSequence < Message > ( self , nil , limit)
53
53
}
54
54
@@ -62,7 +62,7 @@ extension NotificationCenter {
62
62
of subject: Message . Subject ? = nil ,
63
63
for messageType: Message . Type ,
64
64
bufferSize limit: Int = 10
65
- ) -> some AsyncSequence < Message , Never > where Message. Subject: AnyObject {
65
+ ) -> some AsyncSequence < Message , Never > & Sendable where Message. Subject: AnyObject {
66
66
return AsyncMessageSequence < Message > ( self , subject, limit)
67
67
}
68
68
}
0 commit comments