Api Sandbox MainThread
class

MainThread

public static abstract sealed class MainThread

Utility functions that revolve around the main thread

Methods

static SyncTask Wait()

Wait to execute on the main thread

static Void Queue(Action method)

When running in another thread you can queue a method to run in the main thread. If you are on the main thread we will execute the method immediately and return.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.MainThread