How to wait ‘return’ until ‘dispatch’ finish

[React JS]How to wait ‘return’ until ‘dispatch’ finish in action creator? I don’t know how handle this ;(

i made some code. this is a part of action creator. But it return before dispatch finish. i want to dispatch finish before ‘return’. help me please

export const Hello = param=> dispatch => {   return postApi('/hello', param)     .then(async res => {       await dispatch(goHello(res));        return true; })