WriteOnceBlock<T>.IReceivableSourceBlock<T>.TryReceiveAll Method

Definition

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

C#
bool IReceivableSourceBlock<T>.TryReceiveAll(out System.Collections.Generic.IList<T> items);

Parameters

items
IList<T>

The items received from the source.

Returns

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

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