Create a CallLaterResult from a Twisted DelayedCall.
(cls, delayed_call: DelayedCall)
| 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. |