Java.Util.Concurrent.IFuture.Get Method
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.

Syntax

[Android.Runtime.Register("get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetGet_JLjava_util_concurrent_TimeUnit_Handler:Java.Util.Concurrent.IFutureInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object Get (long timeout, TimeUnit unit)

Parameters

timeout
the maximum time to wait
unit
the time unit of the timeout argument

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Util.Concurrent.CancellationExceptionif the computation was cancelled
Java.Util.Concurrent.ExecutionExceptionif the computation threw an exception
Java.Lang.InterruptedExceptionif the current thread was interrupted while waiting
Java.Util.Concurrent.TimeoutExceptionif the wait timed out

Remarks

Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1