DataflowBlock.Receive<TOutput> Method (ISourceBlock<TOutput>, CancellationToken)
Synchronously receives a value from a specified source and provides a token to cancel the operation.
Assembly: System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)
public static TOutput Receive<TOutput>( this ISourceBlock<TOutput> source, CancellationToken cancellationToken )
The type of data contained in the source.
- Type: System.Threading.Tasks.Dataflow.ISourceBlock<>
The source from which to receive the value.
- Type: System.Threading.CancellationToken
The token to use to cancel the receive operation.
The received value.