From 97ecbd86bb16f7f460b26b9c685f5ffdf177ed9c Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Fri, 7 Apr 2023 12:27:14 +0200 Subject: [PATCH] Watcher - Documented method `shutdown()` --- source/tristanable/manager/watcher.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/tristanable/manager/watcher.d b/source/tristanable/manager/watcher.d index 39b1989..336d0a4 100644 --- a/source/tristanable/manager/watcher.d +++ b/source/tristanable/manager/watcher.d @@ -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 */