While the inner method async does the outer method has to be async?

后端 未结 0 1327
醉酒成梦
醉酒成梦 2021-01-14 03:33

I have an async method. Can I call it from an non-async method? Like the following

My method


void method() async{

await \'something\'

}         


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