MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RunOnUpdate

Method RunOnUpdate

Source/Engine/Scripting/Scripting.cs:129–132  ·  view source on GitHub ↗

Queues the specified work to run on the main thread and returns a object that represents that work. The work to execute asynchronously A task that represents the work queued to execute in the pool.

(Action action)

Source from the content-addressed store, hash-verified

127 /// <param name="action">The work to execute asynchronously</param>
128 /// <returns>A task that represents the work queued to execute in the pool.</returns>
129 public static Task RunOnUpdate(Action action)
130 {
131 return Task.Factory.StartNew(action, CancellationToken.None, TaskCreationOptions.None, MainThreadTaskScheduler);
132 }
133
134 private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)
135 {

Callers 2

OnEndContainsFocusMethod · 0.80
OnWindowAddedMethod · 0.80

Calls 1

StartNewMethod · 0.80

Tested by

no test coverage detected