public struct AsyncMiddleware: Middleware

Async Middleware handles actions of type AsyncAction

AsyncAction are not dispatched to the reducer When AsyncMiddleware intercepts an AsyncAction it does the following:

  1. Call action.execute on that action
  2. the action execute is executed which receives the getState and dispatch function as its parameters
  3. the execute calls dispatch as many times as wanted, dispatching new actions (can also disptach new AsyncAction)