Minimize repetition between the same function definition sync and async

前端 未结 0 727
夕颜
夕颜 2021-02-07 04:29

I have 2 code paths, 1 sync and 1 async. I want them to have the same behavior except for their synchronicity flavor.

To do this, I\'m trying to have as much code in com

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