BatchBlock<T>.TryReceiveAll(IList<T[]>) 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<cli::array <T> ^> ^ % items);
public bool TryReceiveAll (out System.Collections.Generic.IList<T[]> items);
public bool TryReceiveAll (out System.Collections.Generic.IList<T[]>? items);
abstract member TryReceiveAll : IList -> bool
override this.TryReceiveAll : IList -> bool
Public Function TryReceiveAll (ByRef items As IList(Of T())) As Boolean

Parametry

items
IList<T[]>

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