Skip to content

NodejsEnvironment.Post method (1 of 2)

Runs an action on the JS thread, without waiting for completion.

C#
public void Post(Action action, bool allowSync = false)
parameterdescription
actionThe action to run.
allowSyncTrue to allow the action to run immediately if the current synchronization context is this one. By default the action will always be scheduled for later execution.

See Also


NodejsEnvironment.Post method (2 of 2)

Runs an asynchronous action on the JS thread, without waiting for completion.

C#
public void Post(Func<Task> asyncAction, bool allowSync = false)
parameterdescription
asyncActionThe action to run.
allowSyncTrue to allow the action to run immediately if the current synchronization context is this one. By default the action will always be scheduled for later execution.

See Also

Released under the MIT license