다음을 통해 공유


ExecutorCompletionService.Poll Method

Definition

Overloads

Poll()

Retrieves and removes the Future representing the next completed task, or null if none are present.

Poll(Int64, TimeUnit)

Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.

Poll()

Retrieves and removes the Future representing the next completed task, or null if none are present.

[Android.Runtime.Register("poll", "()Ljava/util/concurrent/Future;", "GetPollHandler")]
public virtual Java.Util.Concurrent.IFuture? Poll ();
[<Android.Runtime.Register("poll", "()Ljava/util/concurrent/Future;", "GetPollHandler")>]
abstract member Poll : unit -> Java.Util.Concurrent.IFuture
override this.Poll : unit -> Java.Util.Concurrent.IFuture

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

Poll(Int64, TimeUnit)

Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.

[Android.Runtime.Register("poll", "(JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Future;", "GetPoll_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual Java.Util.Concurrent.IFuture? Poll (long timeout, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("poll", "(JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Future;", "GetPoll_JLjava_util_concurrent_TimeUnit_Handler")>]
abstract member Poll : int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IFuture
override this.Poll : int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IFuture

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.

Applies to