How do you gracefully exit a go uber fx app

前端 未结 0 511
长情又很酷
长情又很酷 2021-01-23 15:10

How do you stop an uber fx as in shutdown the entire program. There seems to be no other way other than ctrl+c

func main() {
    fx.New(
        fx.Invoke(registe         


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