MCPcopy Index your code
hub / github.com/RustPython/RustPython / currentThread

Function currentThread

Lib/threading.py:1482–1491  ·  view source on GitHub ↗

Return the current Thread object, corresponding to the caller's thread of control. This function is deprecated, use current_thread() instead.

()

Source from the content-addressed store, hash-verified

1480 return _DummyThread()
1481
1482def currentThread():
1483 """Return the current Thread object, corresponding to the caller's thread of control.
1484
1485 This function is deprecated, use current_thread() instead.
1486
1487 """
1488 import warnings
1489 warnings.warn('currentThread() is deprecated, use current_thread() instead',
1490 DeprecationWarning, stacklevel=2)
1491 return current_thread()
1492
1493def active_count():
1494 """Return the number of Thread objects currently alive.

Callers

nothing calls this directly

Calls 2

current_threadFunction · 0.85
warnMethod · 0.45

Tested by

no test coverage detected