MCPcopy Create free account
hub / github.com/celery/celery / capture_thread

Method capture_thread

t/unit/concurrency/test_prefork.py:1515–1519  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

1513 thread_target = None
1514
1515 def capture_thread(*args, **kwargs):
1516 nonlocal thread_target
1517 thread_target = kwargs['target']
1518 mock_timer_thread = Mock(name='timer_thread')
1519 return mock_timer_thread
1520
1521 mock_thread.side_effect = capture_thread
1522

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected