Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

CallbackToFutureAdapter.Resolver

public static interface CallbackToFutureAdapter.Resolver

androidx.concurrent.futures.CallbackToFutureAdapter.Resolver<T>


Called by CallbackToFutureAdapter.getFuture(CallbackToFutureAdapter.Resolver).

Summary

Public methods

abstract Object attachCompleter(Completer<T> completer)

Create your callback object and start whatever operations are required to trigger it here.

Public methods

attachCompleter

public abstract Object attachCompleter (Completer<T> completer)

Create your callback object and start whatever operations are required to trigger it here.

Parameters
completer Completer: Call one of the set methods on this object to complete the returned Future.

Returns
Object an object to use as the human-readable description of what is expected to complete this future. In error cases, its toString() will be included in the message.

Throws
Exception