Promise

Extension of the Promise object with some Katana related helpers

  • This then allows to dispatch a Dispatchable that is used to get a chainable Promise.

    Declaration

    Swift

    @discardableResult
    func thenDispatch(_ dispatchable: Dispatchable) -> Promise<Void>

    Parameters

    dispatchable

    the dispatchable to dispatch

    Return Value

    a chainable promise that will be resolved when the store will handle the dispatchable