MCPcopy
hub / github.com/scrapy/scrapy / _maybe_fire_closing

Method _maybe_fire_closing

scrapy/core/engine.py:93–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 await maybe_deferred_to_future(self.closing)
92
93 def _maybe_fire_closing(self) -> None:
94 if self.closing is not None and not self.inprogress:
95 if self.nextcall:
96 self.nextcall.cancel()
97 if self.heartbeat.running:
98 self.heartbeat.stop()
99 self.closing.callback(None)
100
101
102class ExecutionEngine:

Callers 2

remove_requestMethod · 0.95
closeMethod · 0.95

Calls 3

callbackMethod · 0.80
cancelMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected