#Graceful Shutdown
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
How would you gracefully shutdown? I know i can create a tokio thread and wait for the shutdown signal but how would i shutdown the shards?
Send a close message from the shard and wait until your close gets acknowledged, then you can break out of your handler and you'll have disconnected gracefully
could you give me an example?