.. index:: 
  !MrzReader.threadCount Property

.. _id3_document_mrz_reader_thread_count_class_member:

===============================================================================
MrzReader.threadCount Property
===============================================================================

Module: :ref:`MrzReader<id3_document_mrz_reader_class>`

Type: int

Definition
----------

Number of threads to use for reading.

.. 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 id3DocumentMrzReader_GetThreadCount (ID3_DOCUMENT_MRZ_READER hMrzReader, int * threadCount)
      int id3DocumentMrzReader_SetThreadCount (ID3_DOCUMENT_MRZ_READER hMrzReader, 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.

