Safe re-initialization of variables inside Kotlin object

前端 未结 0 736
执笔经年
执笔经年 2021-02-01 17:58

I want to reinitialize Retrofit and OkHttp instances in case of some errors, like this, for example:

try {
    response = ApiFactory.apiInstance         


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