TransformBlock<TInput,TOutput>.TryReceiveAll Method

Definition

Attempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>.

C#
public bool TryReceiveAll(out System.Collections.Generic.IList<TOutput> items);
C#
public bool TryReceiveAll(out System.Collections.Generic.IList<TOutput>? items);

Parameters

items
IList<TOutput>

The items received from the source.

Returns

true if one or more items could be received; otherwise, false.

Implements

Remarks

This method does not block waiting for the source to provide an item.

It will return after checking for elements, whether or not an element was available.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
UWP 10.0