await

actual suspend fun <T> Task<T>.await(): T(source)

Awaits the completion of the task without blocking a thread, returning its result or throwing its exception, mirroring kotlinx.coroutines.tasks.await from kotlinx-coroutines-play-services so that Android code keeps its import unchanged on every platform.

On Android and the JVM this is the real kotlinx-coroutines-play-services function; on Apple, JS and wasmJs platforms a Kotlin implementation over the shared Task is provided.

expect suspend fun <T> Task<T>.await(): T(source)

Awaits the completion of the task without blocking a thread, returning its result or throwing its exception, mirroring kotlinx.coroutines.tasks.await from kotlinx-coroutines-play-services so that Android code keeps its import unchanged on every platform.

On Android and the JVM this is the real kotlinx-coroutines-play-services function; on Apple, JS and wasmJs platforms a Kotlin implementation over the shared Task is provided.

actual suspend fun <T> Task<T>.await(): T(source)

Awaits the completion of the task without blocking a thread, returning its result or throwing its exception, mirroring kotlinx.coroutines.tasks.await from kotlinx-coroutines-play-services so that Android code keeps its import unchanged on every platform.

On Android and the JVM this is the real kotlinx-coroutines-play-services function; on Apple, JS and wasmJs platforms a Kotlin implementation over the shared Task is provided.