MCPcopy
hub / github.com/scrapy/scrapy / close

Method close

scrapy/core/downloader/__init__.py:264–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

262 queue_dfd.callback(response) # awaited in _enqueue_request()
263
264 def close(self) -> None:
265 self._stop_slot_gc()
266 for slot in self.slots.values():
267 slot.close()
268
269 def _slot_gc(self, age: float = 60) -> None:
270 mintime = monotonic() - age

Callers 2

test_paramsFunction · 0.95

Calls 3

_stop_slot_gcMethod · 0.95
valuesMethod · 0.80
closeMethod · 0.45

Tested by 2

test_paramsFunction · 0.76