jimn
11/23/2017, 5:22 AMgildor
11/23/2017, 5:25 AMrunBlocking{}
and call join()
to wait when coroutine will be finishedjimn
11/23/2017, 5:26 AMgildor
11/23/2017, 5:27 AMjimn
11/23/2017, 5:28 AMgildor
11/23/2017, 5:29 AMjimn
11/23/2017, 5:29 AMgildor
11/23/2017, 5:29 AMok so the kotlinx githb project really lacks big bold letters saying add this to maven/gradle... iiucwhat do you mean? There are big bold letters: https://github.com/Kotlin/kotlinx.coroutines#using-in-your-projects
jimn
11/23/2017, 5:31 AMgildor
11/23/2017, 5:34 AMadding coroutinesIt’s just enabled coroutine feature of compiler. kotlinx.coroutines is not requirement, you can use any implementation in your project, it’s easy to write simple coroutine builder for simple usage