Can we return a method in generator?

前端 未结 0 1721
生来不讨喜
生来不讨喜 2021-01-03 14:29

I have created a generator which yields the setTimeout with a return a value ...

const wait_and_say = (a) => {
     console.log(`Wait for 4 second to get a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题