init(send:)
Effect.swift:191@MainActor init(send: @escaping @MainActor (Action) -> Void)
@MainActor init(send: @escaping @MainActor (Action) -> Void)
s22ComposableArchitecture4SendV4sendACyxGyxYbScMYcc_tcfc
What are these?98OH6
import ComposableArchitecture
The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).
@MainActor struct Send<Action>
A type that can send actions back into the system when used from run(priority:operation:catch:fileID:filePath:line:column:)
.
@globalActor final actor MainActor
A singleton actor whose executor is equivalent to the main dispatch queue.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
@MainActor func callAsFunction(_ action: Action)
Sends an action back into the system from an effect.
@MainActor func callAsFunction(_ action: Action, animation: Animation?)
Sends an action back into the system from an effect with animation.
@MainActor func callAsFunction(_ action: Action, transaction: Transaction)
Sends an action back into the system from an effect with transaction.