mxcl / AmA

Ask mxcl anything.
51 stars 4 forks source link

Do you have an opinion on how to use promises on Android? #12

Closed kenstir closed 5 years ago

kenstir commented 5 years ago

I have found nothing like PromiseKit in the Android world, and I want it. Do you have an opinion? So far I have found:

mxcl commented 5 years ago

Last time I looked I didn't find anything good, but the last Android app I wrote I used Kotlin and found the async/await system there pretty good.

I agree with your that Rx stuff is hardcore relative to promises. Personally I believe Rx will remain intimidating until it has language support.

kenstir commented 5 years ago

Thank you, I will check out Kotlin async/await!

bellebethcooper commented 5 years ago

@kenstir I've only dabbled a little in Android (using Kotlin) but I liked using Kovenant for promises there.

kenstir commented 4 years ago

@bellebethcooper This is by now an old thread, but thank you for the suggestion, though I didn't take it. I am instead using Kotlin coroutines, and they are pretty wonderful once you get the hang of them. Return Result<> from your suspend funs, don't try to throw across the coroutine boundary, and you could be very happy.