ActionWrapper() private méthode

private ActionWrapper ( Action, a ) : IEnumerator,
a Action,
Résultat IEnumerator,
 /// <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));
 }
Exemple #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));
 }