Skip to content

Conversation

@wRAR
Copy link
Contributor

@wRAR wRAR commented Dec 11, 2025

For scrapy/scrapy#7164

This is kind of a proof of concept, but it passes tests on Linux both in this state (so using Scrapy 2.13) and with modifications for the unreleased Scrapy (installing Scrapy from the branch, changing _ASYNC_HANDLER_API to True).

I haven't tested this on Windows, but I kept _deferred_from_coro() calls, so it should work (as an aside, with almost all Scrapy API preferring coroutines now, it would be easier to not have these calls and double conversions, maybe _ThreadedLoopAdapter can be extended to also take coros directly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants