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.155 -- Release Build+a7d8ba87ff92af3282fc68a6fbfd37a854100b44
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 FuncCancellationToken, Task
  The action to be performed during this operation.

## See Also

#### Reference

TaskSynchronizedOperation Class
TaskSynchronizedOperation Overload
Gemstone.Threading.SynchronizedOperations Namespace