Gemstone Common Library
Show/Hide TOC

# TaskSynchronizedOperation(FuncCancellationToken, Task) Constructor

Creates a new instance of the TaskSynchronizedOperation class.

## Definition

Namespace: Gemstone.Threading.SynchronizedOperations
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.151 -- Release Build+cb63b4525778c53d196bb55bacd9a49fac1f0f07
C#
View Source Request Example

    public TaskSynchronizedOperation(
    	Func<CancellationToken, Task> asyncAction
    )

VB
View Source Request Example

    Public Sub New (
    	asyncAction As Func(Of CancellationToken, Task)
    )

C++
View Source Request Example

    public:
    TaskSynchronizedOperation(
    	Func<CancellationToken, Task^>^ asyncAction
    )

JavaScript
View Source Request Example

    Gemstone.Threading.SynchronizedOperations.TaskSynchronizedOperation = function(asyncAction);

#### Parameters

asyncAction Func CancellationToken, Task
  The action to be performed during this operation.

## See Also

#### Reference

TaskSynchronizedOperation Class
TaskSynchronizedOperation Overload
Gemstone.Threading.SynchronizedOperations Namespace