TransformManyBlock<TInput,TOutput>.TryReceiveAll 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<TOutput> ^ % items);
public bool TryReceiveAll (out System.Collections.Generic.IList<TOutput> items);
public bool TryReceiveAll (out System.Collections.Generic.IList<TOutput>? items);
abstract member TryReceiveAll : IList -> bool
override this.TryReceiveAll : IList -> bool
Public Function TryReceiveAll (ByRef items As IList(Of TOutput)) As Boolean

Parametry

items
IList<TOutput>

Elementy odebrane ze źródła.

Zwraca

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

Implementuje

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