mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-11 13:25:04 +00:00
service/shutdown
This commit is contained in:
parent
db2b8dd18e
commit
c6551e8ce0
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue