MCPcopy
hub / github.com/scrapy/scrapy / from_twisted

Method from_twisted

scrapy/utils/asyncio.py:277–281  ·  view source on GitHub ↗

Create a CallLaterResult from a Twisted DelayedCall.

(cls, delayed_call: DelayedCall)

Source from the content-addressed store, hash-verified

275
276 @classmethod
277 def from_twisted(cls, delayed_call: DelayedCall) -> Self:
278 """Create a CallLaterResult from a Twisted DelayedCall."""
279 o = cls()
280 o._delayed_call = delayed_call
281 return o
282
283 def cancel(self) -> None:
284 """Cancel the underlying delayed call.

Callers 1

call_laterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected