Restrict method - Invoke only once?

前端 未结 0 1752
既然无缘
既然无缘 2021-02-14 05:14

Is there a way to restrict а method to be invoked only once?

For example: I have an extension method foo();

Can I invoke foo like

config.foo().bar()..

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