Language

IAccountManagerFutureExtensions.GetResultAsync Method

Definition

Asynchronously retrieves the future result, waiting up to the specified timeout.

public static System.Threading.Tasks.Task<Java.Lang.Object?> GetResultAsync(this Android.Accounts.IAccountManagerFuture self, long timeout, Java.Util.Concurrent.TimeUnit? unit);
static member GetResultAsync : Android.Accounts.IAccountManagerFuture * int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<Java.Lang.Object>

Parameters

self
IAccountManagerFuture

The IAccountManagerFuture whose result to retrieve.

timeout
Int64

The maximum time to wait, in units specified by unit.

unit
TimeUnit

The time unit for timeout.

Returns

A task that yields the future result when the operation completes.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to