Skip to content

NodejsEnvironment.Run method (1 of 2)

Runs an action on the JS thread, and waits for completion.

C#
public void Run(Action action)
parameterdescription
actionThe action to run.

Exceptions

exceptioncondition
JSExceptionAny exception thrown by the action is wrapped in a JS exception. The original exception is available via the InnerException property.

See Also


NodejsEnvironment.Run<T> method (2 of 2)

Runs an action on the JS thread, and waits for the return value.

C#
public T Run<T>(Func<T> action)
parameterdescription
actionThe action to run.

Exceptions

exceptioncondition
JSExceptionAny exception thrown by the action is wrapped in a JS exception. The original exception is available via the InnerException property.

See Also

Released under the MIT license