service/shutdown

This commit is contained in:
hinto.janai 2024-09-04 17:11:25 -04:00
parent db2b8dd18e
commit c6551e8ce0
No known key found for this signature in database
GPG key ID: D47CE05FA175A499

View file

@ -1 +1,4 @@
# 🟢 Shutdown
# Shutdown
Once the read/write handles to the `tower::Service` are `Drop`ed, the backing thread(pool) will gracefully exit, automatically.
Note the writer thread and reader threadpool aren't connected whatsoever; dropping the write handle will make the writer thread exit, however, the reader handle is free to be held onto and can be continued to be read from - and vice-versa for the write handle.