ActionBlock<TInput> Constructor (Func<TInput, Task^>^)

 

Initializes a new instance of the ActionBlock<TInput> class with the specified action.

Namespace:   System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

public:
ActionBlock(
	Func<TInput, Task^>^ action
)

Parameters

action
Type: System::Func<TInput, Task^>^

The action to invoke with each data element received.

Exception Condition
ArgumentNullException

action is null.

Return to top
Show: