Skip to content

Commit 1415a54

Browse files
committed
Fix compiler warnings by explicitly marking closure as @sendable
1 parent 17e8102 commit 1415a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxSwift/Observable+Concurrency.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public extension AsyncSequence {
6060
/// - returns: An `Observable` of the async sequence's type
6161
func asObservable(detached: Bool = false) -> Observable<Element> {
6262
Observable.create { observer in
63-
let taskBlock = {
63+
let taskBlock: @Sendable () async -> Void = {
6464
do {
6565
for try await value in self {
6666
observer.onNext(value)

0 commit comments

Comments
 (0)