MCPcopy Index your code
hub / github.com/python/cpython / get_snapshot

Method get_snapshot

Lib/test/test_concurrent_futures/test_future.py:329–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327 results = []
328
329 def get_snapshot():
330 for _ in range(1000):
331 snapshot = f._get_snapshot()
332 results.append(snapshot)
333
334 threads = [threading.Thread(target=get_snapshot) for _ in range(4)]
335 with threading_helper.start_threads(threads):

Callers

nothing calls this directly

Calls 2

_get_snapshotMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected