.. index:: 
  !DocumentDetector.threadCount Property

.. _id3_document_document_detector_thread_count_class_member:

===============================================================================
DocumentDetector.threadCount Property
===============================================================================

Module: :ref:`DocumentDetector<id3_document_document_detector_class>`

Type: int

Definition
----------

Number of threads to use for detection.

.. hint:: Default value is 1. Allocating more than 1 thread here can increase the speed of the process.


.. tab-set::

  .. tab-item:: Python
    :sync: Python

    .. code:: Python

      thread_count: int


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Dart
    :sync: Dart

    .. code:: Dart

      int get threadCount => getThreadCount();
      set threadCount(int value) => setThreadCount(value);


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: C#
    :sync: C#

    .. code:: C#

      public int threadCount
      {
          get => GetthreadCount();
          set => SetthreadCount(ref value);
      }


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Java
    :sync: Java

    .. code:: Java

      public int getThreadCount() throws DocumentException
      public void setThreadCount(int threadCount) throws DocumentException


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: Swift
    :sync: Swift

    .. code:: Swift

      public var threadCount: Int
          get {
              return Int(try! getThreadCount())
          }
      }


    **Exceptions**

      .. line-block::

        :ref:`DocumentException<id3_document_document_exception>`
        An error has occurred during Document Library execution.

  .. tab-item:: C
    :sync: C

    .. code:: C

      int id3DocumentDetector_GetThreadCount (ID3_DOCUMENT_DETECTOR hDocumentDetector, int * threadCount)
      int id3DocumentDetector_SetThreadCount (ID3_DOCUMENT_DETECTOR hDocumentDetector, int threadCount)

    **Returns**
   
      .. line-block::

        ``int``
        An error code.
        See :ref:`id3DocumentError<id3_document_document_error_enum>` file for the list of possible error codes.

