AnySideEffectContext
public protocol AnySideEffectContextType erasure for SideEffectContext
See also
SideEffectContext
- 
                  
                  Type erased dependencies of the side effect DeclarationSwift var anyDependencies: SideEffectDependencyContainer { get }
- 
                  
                  Type erased function that returns the current configuration of the state DeclarationSwift func getAnyState() -> StateReturn Valuethe type erased current configuration of the state 
- 
                  
                  Dispatches a Dispatchable. It will essentially call theanyDispatchmethod of the backing store.DeclarationSwift @discardableResult func anyDispatch(_ dispatchable: Dispatchable) -> Promise<Any>Parametersdispatchablethe item to dispatch Return Valuea promise that is resolved when the store finishes handling the dispatched item 
- 
                  dispatch(_:Default implementation) Dispatches a AnySideEffect.Default ImplementationDefault implementation of the dispatch<T: ReturningSideEffect>DeclarationSwift @discardableResult func dispatch<T>(_ dispatchable: T) -> Promise<Void> where T : AnySideEffectParametersdispatchablethe AnySideEffectto dispatchReturn Valuea promise that is resolved with the value returned by the side effect when the store finishes handling the dispatched item 
- 
                  
                  Dispatches a AnyStateUpdater.DeclarationSwift @discardableResult func dispatch<T>(_ dispatchable: T) -> Promise<Void> where T : AnyStateUpdaterParametersdispatchablethe side effect to dispatch Return Valuea promise that is resolved when the store finishes updating the state 
- 
                  
                  Dispatches a ReturningSideEffectDeclarationSwift @discardableResult func dispatch<T>(_ dispatchable: T) -> Promise<T.ReturnValue> where T : ReturningSideEffectParametersdispatchablethe ReturningSideEffectto dispatchReturn Valuea promise that is resolved with the value returned by the side effect when the store finishes handling the dispatched item 
 View on GitHub
            View on GitHub
           AnySideEffectContext Protocol Reference
      AnySideEffectContext Protocol Reference