Tuan Kiet
07/09/2019, 1:56 AMsuspend
function from js
site? or are we shouldn’t call at all?gildor
07/09/2019, 7:50 AMlaunch
Joffrey
07/10/2019, 1:10 PMTuan Kiet
07/10/2019, 1:13 PMlaunch
of async
with it own scopeJoffrey
07/10/2019, 1:15 PMSystemkern
07/11/2019, 6:44 PMimport kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.promise
import kotlin.js.Promise
suspend fun getGroup(…): Group = …
@JsName("getGroup")
fun getGroupWrapper(…): Promise<Group> =
GlobalScope.promise {
getGroup(…) // suspend fun getGroup(): Group
}
gildor
07/12/2019, 12:24 AM