Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. value = false;
  2.  
  3. call(subFunction);
  4.  
  5. const { action } = yield race({
  6. action:
  7. value || take(someAction().type),
  8. _: delay(25000)
  9. })
  10.  
  11. if(action) {
  12. console.log('udalo sie')
  13. }
  14.  
  15. function* subFunction() {
  16. yield put(someAction);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement