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, S: SignalProducerProtocol>(token: H, effect: @escaping (Context) -> S) where S.Value == DispatchedAction<OutputAction>, S.Error == Never
-
Undocumented
Declaration
Swift
public init<S>(effect: @escaping (Context) -> S) where S : SignalProducerProtocol, S.Error == Never, S.Value == DispatchedAction<OutputAction>
-
Undocumented
Declaration
Swift
public static var doNothing: Effect { get }
-
Undocumented
Declaration
Swift
public func run(_ context: Context) -> SignalProducer<DispatchedAction<OutputAction>, Never>?
-
Undocumented
Declaration
Swift
public func map<NewOutputAction>(_ transform: @escaping (OutputAction) -> NewOutputAction) -> Effect<Dependencies, NewOutputAction>
-
Undocumented
Declaration
Swift
public static func fireAndForget<S: SignalProducerProtocol>(_ upstream: @escaping (Context) -> S) -> Effect<Dependencies, OutputAction> where S.Error == Never
-
Undocumented
Declaration
Swift
public static func fireAndForget<S: SignalProducerProtocol>( _ upstream: @escaping (Context) -> S, catchErrors: @escaping (S.Error) -> 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) -> Disposable ) -> 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) -> Disposable ) -> Effect
-
Undocumented
Declaration
Swift
public static func toCancel<H>(_ token: H) -> Effect where H : Hashable
-
Undocumented
Declaration
Swift
public init<H: Hashable, S: SignalProducerProtocol>(token: H, effect: S) where S.Value == DispatchedAction<OutputAction>, S.Error == Never
-
Undocumented
Declaration
Swift
public init<S>(_ effect: S) where S : SignalProducerProtocol, S.Error == Never, S.Value == DispatchedAction<OutputAction>
-
Undocumented
Declaration
Swift
public func ignoringDependencies<T>() -> Effect<T, OutputAction>
-
Undocumented
Declaration
Swift
public static func fireAndForget<S>(_ upstream: S) -> Effect<Dependencies, OutputAction> where S : SignalProducerProtocol, S.Error == Never
-
Undocumented
Declaration
Swift
public static func fireAndForget<S: SignalProducerProtocol>(_ upstream: S, catchErrors: @escaping (S.Error) -> DispatchedAction<OutputAction>?) -> Effect<Dependencies, OutputAction>
-
Undocumented
Declaration
Swift
public static func fireAndForget(_ operation: @escaping () -> Void) -> Effect<Dependencies, OutputAction>