Skip to content

Commit 8024ec1

Browse files
authored
Update Futures.scala
futureFailure fix
1 parent 4849877 commit 8024ec1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/org/learningconcurrency/ch4/Futures.scala

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ object FuturesFailure extends App {
7979
urlSpec.failed foreach {
8080
case t => log(s"exception occurred - $t")
8181
}
82+
Thread.sleep(2000)
8283
}
8384

8485

0 commit comments

Comments
 (0)