Top "Kotlinx.coroutines" questions

A language feature and a library introduced in Kotlin 1.3 that is used to implement the "green threads" model.

Kotlin Coroutines with returning value

I want to create a coroutine method which has returning value. For example) fun funA() = async(CommonPool) { return 1 } fun funB() = …

kotlin kotlinx.coroutines
Suspend function 'callGetApi' should be called only from a coroutine or another suspend function

I am calling suspended function from onCreate(...) override fun onCreate(savedInstanceState: Bundle?) { ... ... callGetApi() } and the suspended function is:- suspend …

android kotlin coroutine kotlinx.coroutines
Kotlin Android debounce

Is there any fancy way to implement debounce logic with Kotlin Android? I'm not using Rx in project. There is …

android kotlin kotlin-android-extensions kotlin-extension kotlinx.coroutines
Module with Main dispatcher is missing

I'm trying to make a background call to my local database and update the UI with the results using coroutines. …

android kotlin coroutine kotlinx.coroutines
Migrate to Kotlin coroutines in Android with Kotlin 1.3

What should I change in my build.gradle file or import in classes to use stable coroutine functions in my …

android kotlin kotlinx.coroutines
Why not use GlobalScope.launch?

I read that usage of Globalscope is highly discouraged, here. I have a simple use-case. For every kafka message (let's …

kotlin kotlinx.coroutines jvm-languages
How to call Kotlin suspending coroutine function from Java 7

I'm trying to call Kotlin function from Java 7. I'm using coroutines and this called function is suspending, for example: suspend …

java android kotlin coroutine kotlinx.coroutines
Using kotlinx.coroutines in IntelliJ IDEA project

I am trying to learn coroutines and so I fire up IntelliJ and create a scratch file. But when I …

kotlin coroutine kotlinx.coroutines
Kotlin coroutines handle error and implementation

Using coroutines for the first time. Need help. Here is my flow: Presenter wants to login so calls Repository Interface. …

android kotlin coroutine kotlinx.coroutines
Unresolved reference: async in Kotlin in 1.3

I have multi module kotlin gradle project in github here. One of my sub project introducing-coroutines with build file build.…

kotlin coroutine kotlinx.coroutines kotlin-extension