concept TransformBlock < TInput in category .net

appears as: TrsformBlock<TInput
Concurrency in .NET

This is an excerpt from Manning's book Concurrency in .NET.

Note that TransformBlock<TInput,TOutput> performs as the BufferBlock­<TOutput>, which buffers both the input and output values. The underlying delegate can run synchronously or asynchronously. The asynchronous version has a type signature Func­<TInput,Task<TOutput>> whose purpose it is to run the underlying function asynchronously. The block treats the process of that element as completed when the returned Task appears terminated. This listing shows how to use the TransformBlock type (the code to note is in bold).