Java.Util.Concurrent.LinkedBlockingDeque.PollFirst Method
Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available.

Syntax

[Android.Runtime.Register("pollFirst", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetPollFirst_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual Java.Lang.Object PollFirst (long timeout, TimeUnit unit)

Parameters

timeout
how long to wait before giving up, in units of unit
unit
a TimeUnit determining how to interpret the timeout parameter

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.InterruptedException

Remarks

Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become 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 9