Java.Util.Concurrent.IBlockingQueue.Poll Method
Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.

Syntax

[Android.Runtime.Register("poll", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetPoll_JLjava_util_concurrent_TimeUnit_Handler:Java.Util.Concurrent.IBlockingQueueInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Object Poll (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.InterruptedExceptionif interrupted while waiting

Remarks

Retrieves and removes the head of this queue, 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 1