Hello, World! Hey, an interop question: how would...
# announcements
b
Hello, World! Hey, an interop question: how would you return a
Future<Void>
in a Kotlin library (so it's nice for Java users)? I'd like to avoid returning
Future<Unit>
because this would expose a Kotlin specific type to my API.
found a solution: declare
Future<Void?>
instead (and simply return
null
)
e
Future<Nothing?>
will be seen as
Future<Void>
by Java consumers
b
oh really! This may be better indeed. Thanks!