DelayedSynchronizedOperation(ActionCancellationToken, ActionException) Constructor

Creates a new instance of the DelayedSynchronizedOperation class.

Definition

Namespace: Gemstone.Threading.SynchronizedOperations
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.110 -- Release Build+13c244059615c58a533059438f38d7e59ef0c2ea
public DelayedSynchronizedOperation(
	Action<CancellationToken> action,
	Action<Exception>? exceptionAction
)

Parameters

action  ActionCancellationToken
The cancellable action to be performed during this operation.
exceptionAction  ActionException
The action to be performed if an exception is thrown from the action.

Remarks

Cancellable synchronized operation is useful in cases where actions should be terminated during dispose and/or shutdown operations.

See Also