How to wait for saga action to complete in javascript function

I am using redux, redux-saga architecture in my application. Here in javascript function I want to dispatch the redux-saga action.

Api.js

export async function fetchUserInfo(username) {
  dispatch({type: 'SYNC'});
  return user.get(`${API.authUrls}/${username}`);
}

Here I am dispatching the action but it is executing async in the middleware. I want once this redux-saga is completed then I want to execute user.get API.

Does anyone know what is the way for this ?