Effect
public struct Effect<Dependencies, OutputAction>
Undocumented
-
Undocumented
Declaration
Swift
public typealias ToCancel = (AnyHashable) -> FireAndForget<DispatchedAction<OutputAction>>
-
Undocumented
Declaration
Swift
public typealias Context = (dependencies: Dependencies, toCancel: ToCancel)
-
Undocumented
Declaration
Swift
public var doesSomething: Bool { get }
-
Undocumented
Declaration
Swift
public let token: AnyHashable?
-
Undocumented
Declaration
Swift
public init<H: Hashable, P: Publisher>(token: H, effect: @escaping (Context) -> P) where P.Output == DispatchedAction<OutputAction>, P.Failure == Never
-
Undocumented
Declaration
Swift
public init<P>(effect: @escaping (Context) -> P) where P : Publisher, P.Failure == Never, P.Output == DispatchedAction<OutputAction>
-
Undocumented
Declaration
Swift
public static var doNothing: Effect { get }
-
Undocumented
Declaration
Swift
public func run(_ context: Context) -> AnyPublisher<DispatchedAction<OutputAction>, Never>?
-
Undocumented
Declaration
Swift
public func map<NewOutputAction>(_ transform: @escaping (OutputAction) -> NewOutputAction) -> Effect<Dependencies, NewOutputAction>
-
Undocumented
Declaration
Swift
public static func fireAndForget<P: Publisher>(_ upstream: @escaping (Context) -> P) -> Effect<Dependencies, OutputAction> where P.Failure == Never
-
Undocumented
Declaration
Swift
public static func fireAndForget<P: Publisher>( _ upstream: @escaping (Context) -> P, catchErrors: @escaping (P.Failure) -> DispatchedAction<OutputAction>? ) -> Effect<Dependencies, OutputAction>
-
Undocumented
Declaration
Swift
public static func fireAndForget(_ operation: @escaping (Context) -> Void) -> Effect<Dependencies, OutputAction>
-
Undocumented
Declaration
Swift
public static func just(_ upstream: @escaping (Context) -> OutputAction) -> Effect<Dependencies, OutputAction>
-
Undocumented
Declaration
Swift
public static func just(_ value: OutputAction, from dispatcher: ActionSource) -> Effect
-
Undocumented
Declaration
Swift
public static func just( _ value: OutputAction, file: String = #file, function: String = #function, line: UInt = #line, info: String? = nil ) -> Effect
-
Undocumented
Declaration
Swift
public static func sequence(_ values: OutputAction..., from dispatcher: ActionSource) -> Effect
-
Undocumented
Declaration
Swift
public static func sequence( _ values: OutputAction..., file: String = #file, function: String = #function, line: UInt = #line, info: String? = nil ) -> Effect
-
Undocumented
Declaration
Swift
public static func sequence(_ values: [OutputAction], from dispatcher: ActionSource) -> Effect
-
Undocumented
Declaration
Swift
public static func sequence( _ values: [OutputAction], file: String = #file, function: String = #function, line: UInt = #line, info: String? = nil ) -> Effect
-
Undocumented
Declaration
Swift
public static func promise<H: Hashable>( token: H, from dispatcher: ActionSource, perform: @escaping (Context, @escaping (OutputAction) -> Void) -> Void ) -> Effect
-
Undocumented
Declaration
Swift
public static func promise<H: Hashable>( token: H, file: String = #file, function: String = #function, line: UInt = #line, info: String? = nil, perform: @escaping (Context, @escaping (OutputAction) -> Void) -> Void ) -> Effect
-
Undocumented
Declaration
Swift
public static func toCancel<H>(_ token: H) -> Effect where H : Hashable
-
Undocumented
Declaration
Swift
public init<H: Hashable, P: Publisher>(token: H, effect: P) where P.Output == DispatchedAction<OutputAction>, P.Failure == Never
-
Undocumented
Declaration
Swift
public init<P>(_ effect: P) where P : Publisher, P.Failure == Never, P.Output == DispatchedAction<OutputAction>
-
Undocumented
Declaration
Swift
public func ignoringDependencies<T>() -> Effect<T, OutputAction>
-
Undocumented
Declaration
Swift
public static func fireAndForget<P>(_ upstream: P) -> Effect<Dependencies, OutputAction> where P : Publisher, P.Failure == Never
-
Undocumented
Declaration
Swift
public static func fireAndForget<P: Publisher>(_ upstream: P, catchErrors: @escaping (P.Failure) -> DispatchedAction<OutputAction>?) -> Effect<Dependencies, OutputAction>
-
Undocumented
Declaration
Swift
public static func fireAndForget(_ operation: @escaping () -> Void) -> Effect<Dependencies, OutputAction>