elizarov
12/15/2017, 10:59 AMCompletableDeferred<Unit>()
as a latch. On one side you await()
it, on the other you do complete(Unit)
.Fré Dumazy
12/15/2017, 11:35 AMelizarov
12/15/2017, 1:58 PMwithTimeout(...) { latch.await() }
Fré Dumazy
12/15/2017, 8:13 PM