Language

ExecutorCompletionService.PollAsync Method

Definition

Overloads

Name Description
PollAsync()

Runs Poll() through Task.

PollAsync(Int64, TimeUnit)

Runs Poll(Int64, TimeUnit) through Task.

PollAsync()

Runs Poll() through Task.

public System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture?> PollAsync();
member this.PollAsync : unit -> System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture>

Returns

A task whose result is the completed future returned by Poll(), or null when none is available.

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

PollAsync(Int64, TimeUnit)

Runs Poll(Int64, TimeUnit) through Task.

public System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture?> PollAsync(long timeout, Java.Util.Concurrent.TimeUnit? unit);
member this.PollAsync : int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<Java.Util.Concurrent.IFuture>

Parameters

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 completed future returned by the timed Poll(Int64, TimeUnit) call, 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