hho
02/06/2018, 1:40 PMobject.wait()
and object.notify()
.
What's the best way to convert this to Kotlin?
The converter in IntelliJ replaces Object
with Any?
, but wait()
and notify()
are of course not defined on Any
.nfrankel
02/06/2018, 1:45 PMFuture
, CompletableFuture
, etc.hho
02/06/2018, 1:47 PMCountDownLatch
, but you're right; a bigger refactoring is probably necessaryelizarov
02/06/2018, 6:28 PM(obj as Object).wait()
(same with notify()
)