#Graceful Shutdown

1 messages · Page 1 of 1 (latest)

shut trench
#

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?

karmic hamlet
#

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

shut trench
#

could you give me an example?