次の方法で共有


ITransferQueue.Transfer(Object) Method

Definition

Transfers the element to a consumer, waiting if necessary to do so.

[Android.Runtime.Register("transfer", "(Ljava/lang/Object;)V", "GetTransfer_Ljava_lang_Object_Handler:Java.Util.Concurrent.ITransferQueueInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Transfer (Java.Lang.Object? e);
[<Android.Runtime.Register("transfer", "(Ljava/lang/Object;)V", "GetTransfer_Ljava_lang_Object_Handler:Java.Util.Concurrent.ITransferQueueInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Transfer : Java.Lang.Object -> unit

Parameters

e
Object

the element to transfer

Attributes

Remarks

Transfers the element to a consumer, waiting if necessary to do so.

More precisely, transfers the specified element immediately if there exists a consumer already waiting to receive it (in #take or timed #poll(long,TimeUnit) poll), else waits until the element is received by a consumer.

Java documentation for java.util.concurrent.TransferQueue.transfer(E).

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