TaskResultContracts.UnpackApiTaskResult

public static abstract class TaskResultContracts.UnpackApiTaskResult extends ResolveApiTaskResult<T, T>
Known Direct Subclasses

A contract that takes a Task<T> and optionally returns its result T? if the task completes successfully.

Supports contracts that are only interested in receiving the result without any associated information about the operation.

Public Constructor Summary

Protected Method Summary

T
outputFromTask(Task<T> task)
Extracts a result from a given Task if it is completed successfully.

Inherited Method Summary

Public Constructors

public UnpackApiTaskResult ()

Protected Methods

protected T outputFromTask (Task<T> task)

Extracts a result from a given Task if it is completed successfully.