MCPcopy
hub / github.com/celery/celery / Timeout

Class Timeout

t/unit/concurrency/test_gevent.py:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 self.patching.modules(*gevent_modules)
122
123 class Timeout(Exception):
124 value = None
125
126 def __init__(self, value):
127 self.__class__.value = value
128
129 def __enter__(self):
130 return self
131
132 def __exit__(self, *exc_info):
133 pass
134 timeout_callback = Mock(name='timeout_callback')
135 apply_target = Mock(name='apply_target')
136 getpid = Mock(name='getpid')

Callers 4

apply_timeoutFunction · 0.90
test_apply_timeoutMethod · 0.85
waitMethod · 0.85
crawlFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_apply_timeoutMethod · 0.68