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

Method spawn

celery/backends/asynchronous.py:224–228  ·  view source on GitHub ↗
(self, func)

Source from the content-addressed store, hash-verified

222class geventDrainer(greenletDrainer):
223
224 def spawn(self, func):
225 import gevent
226 g = gevent.spawn(func)
227 gevent.sleep(0)
228 return g
229
230 def _event(self):
231 from gevent.event import Event

Callers 5

schedule_threadMethod · 0.45
schedule_threadMethod · 0.45
startMethod · 0.45

Calls 1

sleepMethod · 0.45