Language

IBlockingDequeExtensions.PollFirstAsync Method

Definition

Runs PollFirst(Int64, TimeUnit) on the specified deque through Task.

public static System.Threading.Tasks.Task<Java.Lang.Object?> PollFirstAsync(this Java.Util.Concurrent.IBlockingDeque self, long timeout, Java.Util.Concurrent.TimeUnit? unit);
static member PollFirstAsync : Java.Util.Concurrent.IBlockingDeque * int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<Java.Lang.Object>

Parameters

self
IBlockingDeque

The deque whose timed PollFirst(Int64, TimeUnit) method is called.

timeout
Int64

The maximum wait duration passed to PollFirst(Int64, TimeUnit).

unit
TimeUnit

The unit used to measure timeout.

Returns

A task whose result is the front element removed by PollFirst(Int64, TimeUnit), or null when the wait expires.

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