ID EN
Threading

current_thread

Python 3.11

Return the current Thread object, corresponding to the caller’s thread of control. If the caller’s thread of control was not created through the threading module, a dummy thread object with limited functionality is returned.

Syntax

PYTHON
threading.current_thread()

See Also

Thread threading