Document that process_spider_output receives a lazy result (#7939)

This commit is contained in:
Adrian 2026-08-09 12:26:15 +02:00 committed by GitHub
parent cd7f422a1e
commit a18d58d7b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ one or more of these methods:
This method is an :term:`asynchronous generator` called with the
results from the spider after the spider has processed the response.
*result* is lazy: a generator callback runs as *result* is iterated, so
code that runs before that iteration runs before the callback body.
.. seealso:: :ref:`universal-spider-middleware`.
:param response: the response which generated this output from the