BatchedJoinBlock<T1,T2>.TryReceiveAll Metoda

Definicja

Próbuje synchronicznie odebrać wszystkie dostępne elementy z elementu IReceivableSourceBlock<TOutput>.

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

Parametry

items
IList<Tuple<IList<T1>,IList<T2>>>

Elementy odebrane ze źródła.

Zwraca

Boolean

true jeśli można odebrać co najmniej jeden element; w przeciwnym razie , false.

Uwagi

Ta metoda nie blokuje oczekiwania na podanie elementu przez źródło.

Zostanie zwrócony po sprawdzeniu elementów, czy element był dostępny.

Dotyczy