IBlockingQueueExtensions.PollAsync(IBlockingQueue, Int64, TimeUnit) 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.
Runs Poll(Int64, TimeUnit) on the specified queue through Task.
public static System.Threading.Tasks.Task<Java.Lang.Object?> PollAsync(this Java.Util.Concurrent.IBlockingQueue self, long timeout, Java.Util.Concurrent.TimeUnit? unit);
static member PollAsync : Java.Util.Concurrent.IBlockingQueue * int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<Java.Lang.Object>
Parameters
- self
- IBlockingQueue
The queue whose timed Poll(Int64, TimeUnit) method is called.
- timeout
- Int64
The maximum wait duration passed to Poll(Int64, TimeUnit).
- unit
- TimeUnit
The unit used to measure timeout.
Returns
A task whose result is the element removed by Poll(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.