@laserware/stasis
    Preparing search index...

    Function all

    • Creates an Effect description that instructs the middleware to run multiple Effects in parallel and wait for all of them to complete. It's quite the corresponding API to standard Promise#all.

      The following example runs two blocking calls in parallel:

      import { fetchCustomers, fetchProducts } from './path/to/api' import { all, call } from redux-saga/effects

      function* mySaga() { const [customers, products] = yield all([ call(fetchCustomers), call(fetchProducts) ]) }

      Type Parameters

      • T

      Parameters

      • effects: T[]

      Returns AllEffect<T>

    • The same as all([...effects]) but let's you to pass in a dictionary object of effects with labels, just like race(effects)

      Type Parameters

      • T

      Parameters

      • effects: { [key: string]: T }

        a dictionary Object of the form {label: effect, ...}

      Returns AllEffect<T>