Add more docs for TWISTED_REACTOR.

This commit is contained in:
Andrey Rakhmatullin 2021-12-24 19:43:14 +05:00
parent 940cc0776f
commit a986792def
1 changed files with 12 additions and 4 deletions

View File

@ -1638,10 +1638,18 @@ which raises :exc:`Exception`, becomes::
The default value of the :setting:`TWISTED_REACTOR` setting is ``None``, which
means that Scrapy will not attempt to install any specific reactor, and the
default reactor defined by Twisted for the current platform will be used. This
is to maintain backward compatibility and avoid possible problems caused by
using a non-default reactor.
means that Scrapy will install the default reactor defined by Twisted for the
current platform will be used. This is to maintain backward compatibility and
avoid possible problems caused by using a non-default reactor.
.. note::
.. versionchanged:: VERSION
Previously this setting had no effect in a spider
:attr:`~scrapy.Spider.custom_settings` attribute. Now it will be used, but
if you :ref:`run several spiders in one process <run-multiple-spiders>`,
they must not have different values for this setting, because they will use
a single reactor instance.
For additional information, see :doc:`core/howto/choosing-reactor`.