Click or drag to resize
CoroutineCompositeExtensionsExecuteCoroutine Method
Executes the composite inside a coroutine.

Namespace: Styx.CommonBot.Coroutines
Assembly: Styx (in Styx.dll) Version: 3.0.1160.0 (3.0.1160)
public static Task<bool> ExecuteCoroutine(
	this Composite composite,
	Object context = null


Type: Styx.TreeSharpComposite
context (Optional)
Type: SystemObject

Return Value

Type: TaskBoolean
true if the composite finished with Success; otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Composite. 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