Beispiel #1
0
 /// <summary>
 /// Arrange for the given <paramref name="task"/> to be executed by a
 /// thread in this pool.  The method normally returns when the task
 /// has been handed off for (possibly later) execution.
 /// </summary>
 /// <param name="task">The task to be executed.</param>
 public virtual void Execute(Task task)
 {
     Execute(Executors.CreateRunnable(task));
 }
 /// <summary>
 /// Execute the given task directly in the current thread,
 /// within the supplied lock.
 /// </summary>
 /// <param name="action">The task to be executed.</param>
 public virtual void Execute(Action action)
 {
     Execute(Executors.CreateRunnable(action));
 }