Re: Channels: launching a custom co-routine from SyncConsumer

2019-08-28 Thread Dan Merillat
On 8/15/19 11:10 PM, Andrew Godwin wrote: > SyncConsumer isn't async - it runs inside a separate synchronous thread. > You'll need to get the event loop from the other thread and use > call_soon_threadsafe instead! Sorry for the delay in getting back to you, it took me a while to go through the di

Channels: launching a custom co-routine from SyncConsumer

2019-08-14 Thread Dan Merillat
I have an application that's 99% using the ORM and database work so it is using SyncConsumer. However, I have one minor part that needs to use a timer, and I cannot get it to work for the life of me. In an AsyncConsumer, I can use asyncio.ensure_future(self.coroutine()) to start a timer. In s