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

Method notification

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

Source from the content-addressed store, hash-verified

200 def test_result_with_success(self):
201 # TODO(brian@sweetapp.com): This test is timing dependent.
202 def notification():
203 # Wait until the main thread is waiting for the result.
204 time.sleep(1)
205 f1.set_result(42)
206
207 f1 = create_future(state=PENDING)
208 t = threading.Thread(target=notification)

Callers

nothing calls this directly

Calls 4

sleepMethod · 0.45
set_resultMethod · 0.45
cancelMethod · 0.45
notify_allMethod · 0.45

Tested by

no test coverage detected