Click or drag to resize

TaskExtIfTimeout Method

Add an action to be called if a task throws an exception due to a timeout.

Namespace: Demo3D.Native
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public static ITask IfTimeout(
	this ITask task,
	Action action
)

Parameters

task  ITask
Task to watch for timeout.
action  Action
Action to call if timeout happens.

Return Value

ITask
A new task that will call the action if the original action times out.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITask. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also