Task
Represents an asynchronous operation, mirroring the Play Services Tasks API so that code written against the Firebase Android SDK compiles unchanged on every platform.
On Android and the JVM this is the real Play Services class; on Apple and JS platforms a Kotlin implementation is provided. Listeners on the Kotlin implementation are invoked on the thread that completes the task.
The static-only Tasks helper class is intentionally not mirrored; use kotlinx.coroutines.tasks.await or a TaskCompletionSource instead.
Constructors
Functions
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.