captureCoroutine

inline fun <T : Any> captureCoroutine(): T

Captures coroutine. Captured coroutine R>().coInvoke(...) can be used in answer scope.