Android.OS.AsyncTask.Get Method
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result.

Syntax

[Android.Runtime.Register("get", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "")]
public Java.Lang.Object Get (long timeout, Java.Util.Concurrent.TimeUnit unit)

Parameters

timeout
Time to wait before cancelling the operation.
unit
The time unit for the timeout.

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.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3