Until now we have been using a bridge from Kotlin to the Bluebird promise API to avoid callback hell when using XMLHttpRequest.
Now that Kotlin 1.1 has arrived with coroutines,
what would be the idiomatic way to use coroutines to solve this problem?
I’ve been experiencing with some code from a previous post and the docs… but feel a bit unsure whether I’m on the right track.
Thanks for any help!