Run Class
- Namespace
- SatorImaging.UnityFundamentals
public static class Run
- Inheritance
-
Run
Properties
Methods
- InitializeMainThreadContext()
NOTE: must be called on main thread.
- OnMainThreadAndForget<T>(T, Action<T>)
NOTE: this method always Post job to main thread even though it is invoked on main thread. (ie. this method is immediately finished but submitted job is NOT finished immediately)
- OnMainThread<T>(T, Action<T>)
NOTE: this method is blocking current thread until submitted main thread job is finished.
- SetExceptionHandler(Func<Exception, bool>)
Invoked when error occurred. Return true if exception handled in your handler. (ie. stop flowing to subsequent call stack)
Args: (exception)
- Shutdown(int)
Wait for task completion in sync. Designed for blocking application quit before completion.