{% setvar book_path %}/android/reference/kotlin/_book.yaml{% endsetvar %} {% include "/android/_dackka-meta-tags.html" %}

com.google.android.gms.tasks

{% setvar page_path %}com/google/android/gms/tasks/package-summary.html{% endsetvar %} {% setvar doc_root_path %}/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_kotlin_switcher2.md" %}

Interfaces

Continuation

A function that is called to continue execution after completion of a Task.

OnCanceledListener

Listener called when a Task is canceled.

OnCompleteListener

Listener called when a Task completes.

OnFailureListener

Listener called when a Task fails with an exception.

OnSuccessListener

Listener called when a Task completes successfully.

OnTokenCanceledListener

Listener called when a CancellationToken is canceled successfully.

SuccessContinuation

A function that is called to continue execution then a Task succeeds.

Classes

CancellationToken

Propagates notification that operations should be canceled.

CancellationTokenSource

Creates a new CancellationToken or cancels one that has already created.

Task

Represents an asynchronous operation.

TaskCompletionSource

Provides the ability to create Task-based APIs.

TaskExecutors

Standard Executor instances for use with Task.

Tasks

Task utility methods.

Exceptions

DuplicateTaskCompletionException

An exception indicating that something attempted to set a result, exception, or cancellation on a Task that was already completed.

RuntimeExecutionException

Runtime version of java.util.concurrent.ExecutionException.