MCPcopy
hub / github.com/benoitc/gunicorn / add_callback

Method add_callback

tests/test_gthread.py:194–198  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

192 lock = threading.Lock()
193
194 def add_callback(n):
195 def callback():
196 with lock:
197 results.append(n)
198 q.defer(callback)
199
200 threads = []
201 for i in range(10):

Callers

nothing calls this directly

Calls 1

deferMethod · 0.80

Tested by

no test coverage detected