TransformBlock(Of TInput, TOutput).TryReceive Method
Attempts to synchronously receive an available output item from the IReceivableSourceBlock(Of TOutput).
Assembly: System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)
'Declaration Public Function TryReceive ( _ filter As Predicate(Of TOutput), _ <OutAttribute> ByRef item As TOutput _ ) As Boolean
- Type: System.Predicate(Of TOutput)
The predicate value must successfully pass in order for it to be received. filter may be Nothing, in which case all items will pass.
- Type: TOutput
The item received from the source.
Return ValueType: System.Boolean
true if an item could be received; otherwise, false.