Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/crawlee/request_loaders/_request_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ async def is_finished(self) -> bool:

@abstractmethod
async def fetch_next_request(self) -> Request | None:
"""Return the next request to be processed, or `null` if there are no more pending requests."""
"""Return the next request to be processed, or `None` if there are no more pending requests.

The method should return `None` if and only if `is_finished` would return `True`. In other cases, the method
should wait until a request appears.
"""

@abstractmethod
async def mark_request_as_handled(self, request: Request) -> ProcessedRequest | None:
Expand Down
Loading