The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
BufferBlock<T>::TryReceive Method (Predicate<T>^, T)
Attempts to synchronously receive an available output item from the IReceivableSourceBlock<TOutput>.
Assembly: System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)
Parameters
- filter
-
Type:
System::Predicate<T>^
The predicate value must successfully pass in order for it to be received. filter may be null, in which case all items will pass.
- item
-
Type:
T
The item received from the source.
This method does not block waiting for the source to provide an item.
It will return after checking for an element, whether or not an element was available.
Show: