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.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
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