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: 18.03.00
Syntax
C#
public static ITask IfTimeout(
	this ITask task,
	Action action
)

Parameters

task
Type: Demo3D.EventQueueITask
Task to watch for timeout.
action
Type: SystemAction
Action to call if timeout happens.

Return Value

Type: 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