Skip to content

Commit 0b8a141

Browse files
committed
fix(file-io): 🐛 watch service, ajustes no texto
1 parent e8b09eb commit 0b8a141

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

book/07-file-io/sections/05-watch-service.asc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Perceba que o primeiro `poll` retorna imediatamente, mesmo que nenhum evento ten
121121
+
122122
Nos cenários de monitoração, o ideal é utilizar o `take`, caso contrário seria necessário invocar o `poll` inúmeras vezes, enquanto o `take` apenas aguarda indefinidamente até que haja um evento.
123123

124+
.Referências
124125
****
125126
126127
* Monitoring a Directory for Changes
@@ -133,4 +134,4 @@ Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8
133134
134135
* https://docs.oracle.com/javase/tutorial/essential/io/notification.html[Watching a Directory for Changes.] The Java™ Tutorials.
135136
136-
****
137+
****

0 commit comments

Comments
 (0)