title: Is there a way to wait for an action in redux-sagas?
body: <p>I have a saga (A) which fetches the API. This is tied with action (a). I want to trigger an action (b) which internally calls (a), waits for it to finish and then <code>yield</code> something.</p>
  
  <pre><code>// saga A -&gt; action_a
  function *saga_a(action) {
    yield put( ...action1...);
    yield call(api, ...params);
    yield put( ...action2...);
  }
  
  
  // saga B -&gt; action_b
  function *saga_b(action) {
    yield put(..action3..)
  
    waitFor -- put(action_a)     &lt;------ how to achieve this?
  
    yield put(..action4..)
   }
  </code></pre>