LinkedBlockingDeque.PollFirst Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PollFirst() |
Retrieves and removes the first element of this deque,
or returns |
PollFirst(Int64, TimeUnit) |
Retrieves and removes the first element of this deque, waiting up to the specified wait time if necessary for an element to become available. |
PollFirst()
Retrieves and removes the first element of this deque,
or returns null
if this deque is empty.
[Android.Runtime.Register("pollFirst", "()Ljava/lang/Object;", "GetPollFirstHandler")]
public virtual Java.Lang.Object? PollFirst ();
[<Android.Runtime.Register("pollFirst", "()Ljava/lang/Object;", "GetPollFirstHandler")>]
abstract member PollFirst : unit -> Java.Lang.Object
override this.PollFirst : unit -> Java.Lang.Object
Returns
Implements
- Attributes
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
PollFirst(Int64, TimeUnit)
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.Runtime.Register("pollFirst", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetPollFirst_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual Java.Lang.Object? PollFirst (long timeout, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("pollFirst", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetPollFirst_JLjava_util_concurrent_TimeUnit_Handler")>]
abstract member PollFirst : int64 * Java.Util.Concurrent.TimeUnit -> Java.Lang.Object
override this.PollFirst : int64 * Java.Util.Concurrent.TimeUnit -> Java.Lang.Object
Parameters
- timeout
- Int64
how long to wait before giving up, in units of
unit
- unit
- TimeUnit
a TimeUnit
determining how to interpret the
timeout
parameter
Returns
Implements
- Attributes
Exceptions
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.