redux-saga: How to create multiple calls/side-effects programmatically for yield?
<p>With redux-saga, one can execute multiple effects in parallel:</p>

<pre><code>import { call } from 'redux-saga/effects'

// correct, effects will get executed in parallel
const [users, repos]  = yield [
  call(fetch, '/users'),
  call(fetch, '/repos')
]
</code></pre>

<p>How can i create those "call"-calls <strong>programmatically</strong>?</p>

<p>What i want to achieve is this:</p>

<p>Lets say i have an array with different parameters and i want to execute a request to a server per parameter, but in parallel with redux-saga:</p>

<pre><code>const parameters = ['abc', 'def', 'ghi']

const allMyFetchCalls  = parameters.map( (p) =&gt; makeCallRequestWithParameter(p) );
</code></pre>

<p>makeCallRequestWithParameter would create a function call (or in redux-saga-speech: an effect) <em>call(fetch, param)</em> like in <em>yield call(fetch, param)</em></p>

<pre><code>const resultArray = yield allMyFetchCalls;
</code></pre>

<p>Is this possible and if so, how?</p>