TransformManyBlock<TInput,TOutput>.TryReceiveAll Método

Definição

Tentativas de receber síncronicamente todos os itens disponíveis do 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);
abstract member TryReceiveAll : IList -> bool
override this.TryReceiveAll : IList -> bool
Public Function TryReceiveAll (ByRef items As IList(Of TOutput)) As Boolean

Parâmetros

items
IList<TOutput>

Os itens recebidos da fonte.

Devoluções

true se um ou mais itens pudessem ser recebidos; caso contrário, false.

Implementações

Observações

Este método não bloqueia a espera que a fonte forneça um item.

Ele retorna após verificar se há elementos, se um elemento estava disponível ou não.

Aplica-se a