I'm using Channels v2. I want to integrate long-polling into my project.
The only consumer I see in the documentation for http long polling is the AsyncHttpConsumer.
The code I need to run in my handle function is not asynchronous. It connects to another device on the network using a library that is not asynchronous. From what I understand, this will cause the event loop to block, which is bad. Client requests will be handled one at a time.
Can I run my handler synchronously, in a thread somehow?
I asked the same question here: https://stackoverflow.com/q/66055657/6423456, but so far got no responses.
I quickly wrote a subclass of SyncConsumer that works, but: