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

Definicja

Próbuje synchronicznie odbierać wszystkie dostępne elementy z elementu 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

Parametry

items
IList<Tuple<T1,T2>>

Elementy odebrane ze źródła.

Zwraca

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, niezależnie od tego, czy element był dostępny.

Dotyczy