Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ bg_thread
Method
bg_thread
Lib/test/test_free_threading/test_monitoring.py:447–449 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
445
pass
446
447
def
bg_thread():
448
b.wait()
449
func()
# this may instrument `func`
450
451
def
tracefunc(frame, event, arg):
452
# These calls run under tracing can race with the background thread
Callers
nothing calls this directly
Calls
2
func
Function · 0.50
wait
Method · 0.45
Tested by
no test coverage detected