Method RunFunctionAsync
- Namespace
- Alternet.Scripter.TypeScript
- Assembly
- Alternet.Scripter.TypeScript.v9.dll
RunFunctionAsync(string, object[], CancellationToken)
When implemented by a class, executes specified function asynchronously.
Task<object> RunFunctionAsync(string functionName, object[] args = null, CancellationToken cancellationToken = default)
Parameters
functionName
stringName of function to execute.
args
object[]Array of function's parameters.
cancellationToken
CancellationTokenCancellation token.