AsyncScript Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
A script which can be implemented as an async microthread.
Derived from AsyncScript:
public abstract class AsyncScript : ScriptComponent, IIdentifiable, ICollectorHolder
| Name | Description | |
|---|---|---|
| Properties | ||
| CancellationToken | Gets a token indicating if the script execution was canceled. |
|
| Methods | ||
| Execute() | Called once, as a microthread |
|
| PriorityUpdated() | ||
Properties
CancellationToken
Gets a token indicating if the script execution was canceled.
public CancellationToken CancellationToken { get; }
Property Value
| Type | Description |
|---|---|
| System.Threading.CancellationToken |
Methods
Execute()
Called once, as a microthread
public abstract Task Execute()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
PriorityUpdated()
protected override void PriorityUpdated()