Interface and implementation for an optionally async return method

后端 未结 0 1516
离开以前
离开以前 2021-02-15 21:47

I\'m wondering what the optimal way to go when you\'ve got an interface method, whose implementations may return sync value in one implementation and async value in another.

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