QQ: I have a Java API with a callback and I want to wrap that in a kotlin suspend function, so I can avoid callback hell
What is the most idiomatic way to do that?
One obvious solution is a Countdown latch, but I imagine there being something more elegant.