Provides factory methods for
instances, primarily for use in tests.
Public Method Summary
|static <R extends Result> PendingResult<R>|
|static <R extends Result> OptionalPendingResult<R>|
Inherited Method Summary
public static PendingResult<Status> canceledPendingResult ()
public static PendingResult<R> canceledPendingResult (R result)
public static OptionalPendingResult<R> immediatePendingResult (R result)
with the specified result.
setResultCallback(ResultCallback super R>
) is called on the returned PendingResult then
will immediately be called on the main thread. If
is called it will immediate return
on the returned PendingResult is not supported.