ActionWrapper() private method

private ActionWrapper ( Action, a ) : IEnumerator,
a Action,
return IEnumerator,
コード例 #1
0
 /// <summary>
 /// Locks the queue and adds the Action to the queue
 /// </summary>
 /// <param name="action">function that will be executed from the main thread.</param>
 /// <param name="data">parameter that will be used by the function action</param>
 public static void Enqueue(Action <object> action, object data)
 {
     Enqueue(_instance.ActionWrapper(action, data));
 }
コード例 #2
0
 /// <summary>
 /// Locks the queue and adds the Action to the queue
 /// </summary>
 /// <param name="action">function that will be executed from the main thread.</param>
 public static void Enqueue(Action action)
 {
     Enqueue(_instance.ActionWrapper(action));
 }