Skip to content

JSSynchronizationContext.RunAsync method (1 of 2)

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

C#
public Task RunAsync(Func<Task> asyncAction)
parameterdescription
asyncActionThe action to run.

See Also


JSSynchronizationContext.RunAsync<T> method (2 of 2)

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

C#
public Task<T> RunAsync<T>(Func<Task<T>> asyncAction)
parameterdescription
asyncActionThe action to run.

See Also

Released under the MIT license