private void Execute <TExecutor, TModel, TMessage>(Executor <TExecutor, TModel, TMessage> executor) where TExecutor : struct, IExecutor <TModel, TMessage> where TMessage : struct, ITypedMessage { dispatcher.Enqueue(executor.Execute); }
/// <summary> /// Adds an <see cref="Action"/> to the main thread queue. /// The Action will be dispatched under a main thread on a next frame. /// </summary> /// <param name="action">The callback action.</param> public static void Enqueue(Action action) => s_MainThreadDispatcher.Enqueue(action);