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.
Example
The following example runs two blocking calls in parallel:
import { fetchCustomers, fetchProducts } from './path/to/api'
import { all, call } from redux-saga/effects
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
.Example
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) ]) }