is it impossible to make an async function? (excep...
# javascript
d
is it impossible to make an async function? (except in coroutines)?
k
mishaxz: what do you mean?
I would like to call a
Promise
and wait for it with await but I can't figure out how to do it in kotlin js
k
There's
kotlin.js.Promise
class
Do you want to call is in synchronous style?
Then you need coroutines
d
@konsoletyper thanks, I missed the part at the bottom of the first link that shows how you can run coroutines from regular code.