Skip to content

Commit bf47abc

Browse files
authored
docs: Update RequestLoader.fetch_next_request docblock (#1374)
1 parent 3d27f8c commit bf47abc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/crawlee/request_loaders/_request_loader.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ async def is_finished(self) -> bool:
4343

4444
@abstractmethod
4545
async def fetch_next_request(self) -> Request | None:
46-
"""Return the next request to be processed, or `null` if there are no more pending requests."""
46+
"""Return the next request to be processed, or `None` if there are no more pending requests.
47+
48+
The method should return `None` if and only if `is_finished` would return `True`. In other cases, the method
49+
should wait until a request appears.
50+
"""
4751

4852
@abstractmethod
4953
async def mark_request_as_handled(self, request: Request) -> ProcessedRequest | None:

0 commit comments

Comments
 (0)