We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@MainActor
1 parent 498c222 commit b573e1cCopy full SHA for b573e1c
Sources/ComposableArchitecture/Effect.swift
@@ -305,9 +305,9 @@ extension Effect where Failure == Never {
305
/// [callAsFunction]: https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID622
306
307
public struct Send<Action> {
308
- public let send: (Action) -> Void
+ public let send: @MainActor (Action) -> Void
309
310
- public init(send: @escaping (Action) -> Void) {
+ public init(send: @escaping @MainActor (Action) -> Void) {
311
self.send = send
312
}
313
0 commit comments