You can use `CompletableDeferred<Unit>()` as...
# coroutines
e
You can use
CompletableDeferred<Unit>()
as a latch. On one side you
await()
it, on the other you do
complete(Unit)
.
f
alright, tnx, this was what I needed. Is it possible to set a timeout value on this?
e
As usual.
withTimeout(...) { latch.await() }
f
of course, my bad facepalm