@classmethod
  def instance(cls, name, thread_count=1, idle_timeout=60):
    if not hasattr(cls, '_task_queues'):
      cls._task_queues = {}
    try:
      return cls._task_queues[name]
    except KeyError:
      cls._task_queues[name] = cls(thread_count, idle_timeout, name)
      return cls._task_queues[name]
A convenience method for accessing shared instances of ``TaskQueue``.
dataset/ETHPy150Open JeremyOT/Toto/toto/tasks.py/TaskQueue.instance