10-병렬태스크-실행

call은 resolve 되기 전까지 실행 안되는 blocking call

const [users, repos]  = yield all[
  call(fetch, '/users'),
  call(fetch, '/repos')
]

이펙트의 배열을 yield하면, Promise.all 처럼 모든 이펙트들이 resolve되거나, 하나라도 reject될 때까지 block됨.

Last updated

Was this helpful?