BufferBlock<T>.TryReceiveAll(IList<T>) Method

Definition

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

C#
public bool TryReceiveAll (out System.Collections.Generic.IList<T> items);
C#
public bool 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

Produkt Verze
.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
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
UWP 10.0