Skip to content

Commit ee77302

Browse files
committed
Add comment to clarify why we don't need to interrupt threads when a watch service is closed
1 parent cb07075 commit ee77302

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/engineering/swat/watch/impl/mac/MacWatchService.java

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public static MacWatchable newWatchable(Path path) {
5858
@Override
5959
public void close() throws IOException {
6060
closed = true;
61+
// Note: We currently don't support blocking poll/take, so no additional
62+
// logic is needed here to interrupt waiting threads (as specified in
63+
// the documentation of `close`).
6164
}
6265

6366
@Override

0 commit comments

Comments
 (0)