Condividi tramite


ReferenceQueue.Poll Method

Definition

Polls this queue to see if a reference object is available.

[Android.Runtime.Register("poll", "()Ljava/lang/ref/Reference;", "GetPollHandler")]
public virtual Java.Lang.Ref.Reference? Poll ();
[<Android.Runtime.Register("poll", "()Ljava/lang/ref/Reference;", "GetPollHandler")>]
abstract member Poll : unit -> Java.Lang.Ref.Reference
override this.Poll : unit -> Java.Lang.Ref.Reference

Returns

A reference object, if one was immediately available, otherwise null

Attributes

Remarks

Polls this queue to see if a reference object is available. If one is available without further delay then it is removed from the queue and returned. Otherwise this method immediately returns null.

Java documentation for java.lang.ref.ReferenceQueue.poll().

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