What kind of asynchronous code is that? If it uses...
# coroutines
e
What kind of asynchronous code is that? If it uses callback, then you convert it to suspending function first, then you can easily turn it into Deferred with
async
whenever such need arises.