Click or drag to resize

DocumentRunT1, T2 Method (Double, FuncT1, T2, IEnumerable, T1, T2)

Schedule a coroutine to be called after a delay in simulation time.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public ITask Run<T1, T2>(
	double delay,
	Func<T1, T2, IEnumerable> coroutine,
	T1 arg1,
	T2 arg2
)

Parameters

delay
Type: SystemDouble
Simulation time from now in seconds.
coroutine
Type: SystemFuncT1, T2, IEnumerable
Coroutine to be invoked.
arg1
Type: T1
First argument to coroutine.
arg2
Type: T2
Second argument to coroutine.

Type Parameters

T1
Type of first argument to coroutine.
T2
Type of second argument to coroutine.

Return Value

Type: ITask
An ITask representing the scheduled coroutine.
See Also