§
    q-Ph»  ã                  óü   — d dl mZ d dlZd dlmZ  ej        e¦  «        5  d dlmZ	 ddd¦  «         n# 1 swxY w Y   d dl
mZ erd dlZej        dk    rd dlmZ nd dlmZ dd„Z ed	¦  «        dd
„¦   «         ZdS )é    )ÚannotationsN)Ú
deprecated)ÚTYPE_CHECKING)é   é   ÚreturnÚintc                 ó(   — t          j        ¦   «         S )a  
    Return the number of threads in the Polars thread pool.

    Notes
    -----
    The thread pool size can be overridden by setting the `POLARS_MAX_THREADS`
    environment variable before process start. The thread pool is not behind a
    lock, so it cannot be modified once set. A reasonable use case for this might
    be temporarily limiting the number of threads before importing Polars in a
    PySpark UDF or similar context. Otherwise, it is strongly recommended not to
    override this value as it will be set automatically by the engine.

    Examples
    --------
    >>> pl.thread_pool_size()  # doctest: +SKIP
    16
    )ÚplrÚthread_pool_size© ó    úW/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/polars/meta/thread_pool.pyr   r      s   € õ$ ÔÑ!Ô!Ð!r   z>`threadpool_size` was renamed; use `thread_pool_size` instead.c                 ó   — t          ¦   «         S )z¡
    Return the number of threads in the Polars thread pool.

    .. deprecated:: 0.20.7
        This function has been renamed to :func:`thread_pool_size`.
    )r   r   r   r   Úthreadpool_sizer   *   s   € õ ÑÔÐr   )r   r	   )Ú
__future__r   Ú
contextlibÚpolars._utils.deprecationr   ÚsuppressÚImportErrorÚpolars.polarsÚpolarsr   Útypingr   ÚsysÚversion_infoÚwarningsÚtyping_extensionsr   r   r   r   r   ú<module>r      sT  ðØ "Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð à 0Ð 0Ð 0Ð 0Ð 0Ð 0à€ZÔ˜Ñ%Ô%ð  ð  ØÐÐÐÐÐð ð  ð  ñ  ô  ð  ð  ð  ð  ð  ð  øøøð  ð  ð  ð  ð !Ð  Ð  Ð  Ð  Ð  àð 1Ø€J€J€Jà
Ô˜7Ò"Ð"Ø'Ð'Ð'Ð'Ð'Ð'Ð'à0Ð0Ð0Ð0Ð0Ð0ð"ð "ð "ð "ð* €ÐLÑMÔMðð ð ñ NÔMðð ð s   ¡4´8»8