On Mon, 19 Dec 2016 12:31:19 +0100, Sönke Ludwig wrote:
...
One thing to note is that at this point, the event loop will have
stopped already. You can start a new temporary one, though.As an alternative, you can install your own signal handler for
SIGTERM
/SIGINT
using thesignal
function. From within the handler,
you could then send a message to your task (std.concurrency.send
) to
trigger the shutdown, finally callingexitEventLoop
.
I think it need a topic in the documentation relating to stop the server.