Click or drag to resize

ITimerQueueAddOrUpdate Method

Adds (if not already present) or updates (if already present) the item identified by the provided token.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
bool AddOrUpdate(
	Object token,
	TimeSpan time,
	Action<Object, TimeSpan> value
)

Parameters

token  Object
The token that identifies the item.
time  TimeSpan
The due time.
value  ActionObject, TimeSpan
The action to perform when the due time is reached. 1st parameter is the token, 2nd parameter is the due time.

Return Value

Boolean
True if the item was added. False if the already present item was updated.
See Also