Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eliptus-google opened this issue Jun 9, 2023 · 0 comments
Open

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

eliptus-google opened this issue Jun 9, 2023 · 0 comments
Assignees
Labels

Comments

@eliptus-google
Copy link

eliptus-google commented Jun 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants