File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/ComposableArchitecture/Effects Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import SwiftUI
4040 ) -> Self where Failure == Never {
4141 var task : Task < Void , Never > ?
4242 return . future { callback in
43- task = Task ( priority: priority) {
43+ task = Task ( priority: priority) { @ MainActor in
4444 guard !Task. isCancelled else { return }
4545 let output = await operation ( )
4646 guard !Task. isCancelled else { return }
@@ -85,7 +85,7 @@ import SwiftUI
8585 ) -> Self where Failure == Error {
8686 Deferred < Publishers . HandleEvents < PassthroughSubject < Output , Failure > > > {
8787 let subject = PassthroughSubject < Output , Failure > ( )
88- let task = Task ( priority: priority) {
88+ let task = Task ( priority: priority) { @ MainActor in
8989 do {
9090 try Task . checkCancellation ( )
9191 let output = try await operation ( )
You can’t perform that action at this time.
0 commit comments