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.181 -- Release Build+97279656b5a55675063a4190481e67c4f9809501
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