guava icon indicating copy to clipboard operation
guava copied to clipboard

Call Deferred.start() in Deferred.asListenableFuture()

Open eliptus-google opened this issue 2 years ago • 0 comments

Kotlin's Deferred can be crated with CoroutineStart.LAZY. I've found unsuspecting conversions to ListenableFuture with the Deferred.asListenableFuture() extension waiting forever for completion. Calling Deferred.start() when converting seems to produce the desired result.

eliptus-google avatar Jun 09 '23 03:06 eliptus-google