Table of Contents

Method RunFunctionAsync

Namespace
Alternet.Scripter.TypeScript
Assembly
Alternet.Scripter.TypeScript.v9.dll

RunFunctionAsync(string, object[], CancellationToken)

Executes specified function asynchronously.

public Task<object> RunFunctionAsync(string function, object[] args = null, CancellationToken cancellationToken = default)

Parameters

function string

Name of function to execute.

args object[]

Array of function's parameters.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<object>

An object containing return value of the executed function.