Package docking

# Class TaskScheduler

java.lang.Object
docking.TaskScheduler

All Implemented Interfaces:
  `Runnable`

public class TaskScheduler extends Object implements Runnable
Schedules tasks to be run in the `DialogComponentProvider`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Thread`
  `getCurrentThread()`
  Get the currently running thread.
  `boolean`
  `isBusy()`
  Returns true if this task scheduler is running a task or has a pending task.
  `void`
  `run()`
  `void`
  `waitForCurrentTask()`
  Blocks until the current task completes.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### run

    public void run()
    Specified by:
      `run` in interface `Runnable`

  - ### getCurrentThread

    public Thread getCurrentThread()
    Get the currently running thread.
    Returns:
      null if no thread is running.

  - ### waitForCurrentTask

    public void waitForCurrentTask()
    Blocks until the current task completes.

  - ### isBusy

    public boolean isBusy()
    Returns true if this task scheduler is running a task or has a pending task.
    Returns:
      true if this task scheduler is running a task or has a pending task.