Java.Util.Concurrent.ICompletionService.Poll Method
Retrieves and removes the Future representing the next completed task, waiting if necessary up to the specified wait time if none are yet present.

Syntax

[Android.Runtime.Register("poll", "(JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Future;", "GetPoll_JLjava_util_concurrent_TimeUnit_Handler:Java.Util.Concurrent.ICompletionServiceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IFuture Poll (long timeout, TimeUnit unit)

Parameters

timeout
how long to wait before giving up, in units of unit
unit
a TimeUnit determining how to interpret the timeout parameter

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.InterruptedExceptionif interrupted while waiting

Remarks

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 Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1