Update docs/topics/practices.rst

Co-authored-by: Andrey Rakhmatullin <wrar@wrar.name>
This commit is contained in:
Laerte Pereira 2024-05-22 18:51:02 -03:00 committed by GitHub
parent 8210fae25a
commit dc6a495fee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ reactor after ``MySpider`` has finished running.
runner = CrawlerRunner()
d = runner.crawl(MySpider)
from twisted.internet import reactor
d.addBoth(lambda _: reactor.stop())