Closed leo-je closed 3 months ago
Hi @leo-je , to strop you can provide a Future to the shutdown_indicator
method on Server. You future should then resolve when your stop method is called.
Here is an example in unFTP where we resolve this future when a message is received on a channel.
@leo-je , hopefully you resolved it by now. I'm closing this.
I want to encapsulate two methods, start() and stop(), to control the startup and shutdown of the FTP service, but it seems that I can only start it. How can I implement stop()?