Closed rgmz closed 1 year ago
@rgmz I've created #228
Not sure why you call the implementation "sub-par", anyway feel free to comment in the PR
Thanks @tsegismont!
I don't recall why I said that. I probably meant "I have no idea if this is valid, please don't copy and paste it into your code and assume it works."
Describe the feature
In addition to the existing helper methods and builders, it would be useful to provide a coroutine builder that returns a
Future<T>
.Example:
Use cases
Presently, writing code that bridges coroutines and future (e.g. service proxies) can be awkward. You need to create a
Promise
, launch a coroutine, and handle completion of the promise:The kotlin.coroutines project includes several helper functions similar to this.
For example:
mono
to a coroutine