How to make a function return both a promise and a callback

后端 未结 0 1853
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-28 10:52

Today, when I was working with node, I met some special async functions with "overloads" that accept both promises and callbacks. Like this:

doSomething         


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