Click or drag to resize

TaskExtForNoLongerThan Method

Throw an exception if the task takes longer than the timeout.

Namespace:  Demo3D.Native
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public static ITask ForNoLongerThan(
	this ITask task,
	Fixed timeout
)

Parameters

task
Type: Demo3D.EventQueueITask
The task to time.
timeout
Type: Demo3D.EventQueueFixed
The timeout.

Return Value

Type: ITask
A new task that will complete if the original task completes or throw an exception if the it doesn't complete before the timeout expires.

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