RunAsync Method
RunAsync(CancellationToken)
Executes script asynchronously starting from the main entry point.
Declaration
public virtual Task RunAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
Task | Return value of the script being executed. |