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.178 -- Release Build+f8a23028fef00502c7e35bcc3934c260e8a0eb56
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