How do I await a future inside a non-async method which was called from an async method?

前端 未结 0 666
慢半拍i
慢半拍i 2021-02-04 03:56

I\'m using Tokio 1.1 to do async things. I have an async main with #[tokio::main] so I\'m already operating with a runtime.

m

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