- Documented method `shutdown()`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-04-07 12:27:14 +02:00
parent b10807e279
commit 97ecbd86bb
1 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,10 @@ public class Watcher : Thread
}
}
/**
* Shuts down the watcher, unblocks the blocking read in the loop
* resulting in the watcher thread ending
*/
package void shutdown()
{
/* Unblock all calls to `recv()` and disallow future ones */