IReceivableSourceBlock<TOutput>.TryReceiveAll Método

Definición

Intentos de recibir sincrónicamente todos los elementos disponibles de IReceivableSourceBlock<TOutput>.

public:
 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
Public Function TryReceiveAll (ByRef items As IList(Of TOutput)) As Boolean

Parámetros

items
IList<TOutput>

Elementos recibidos del origen.

Devoluciones

Boolean

Es true si se podían recibir uno o más elementos; de lo contrario, es false.

Comentarios

Este método no bloquea la espera de que el origen proporcione un elemento.

Se devolverá después de comprobar si hay elementos, independientemente de si un elemento estaba disponible o no.

Se aplica a