Redigera

Dela via


JoinBlock<T1,T2>.TryReceiveAll(IList<Tuple<T1,T2>>) Method

Definition

Attempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>.

public:
 virtual bool TryReceiveAll([Runtime::InteropServices::Out] System::Collections::Generic::IList<Tuple<T1, T2> ^> ^ % items);
public bool TryReceiveAll (out System.Collections.Generic.IList<Tuple<T1,T2>> items);
public bool TryReceiveAll (out System.Collections.Generic.IList<Tuple<T1,T2>>? items);
abstract member TryReceiveAll : IList -> bool
override this.TryReceiveAll : IList -> bool
Public Function TryReceiveAll (ByRef items As IList(Of Tuple(Of T1, T2))) As Boolean

Parameters

items
IList<Tuple<T1,T2>>

The items received from the source.

Returns

true if one or more items could be received; otherwise, false.

Remarks

This method does not block waiting for the source to provide an item.

It will return after checking for elements, whether or not an element was available.

Applies to