-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dispatcher for async coroutines #118
Comments
Hi, ideally with proper async support you shouldn't have to call |
But what about UDP handlers? The change affects only TCP as far as I can see. |
You're right - I couldn't find a straightforward way to call |
I guess the appropriate course would be to change or even rewrite a lot of the current UDP handling code, to have an async pathway there too. But on a quick glance this looks like quite a chunk of work. |
I was wondering if it is possible to map async coroutines in the dispatcher. I run the
AsyncIOOSCUDPServer
to integrate python-osc in my asyncio driven service, but if I map an async coroutine in the dispatcher I get something like "coroutine was never awaited" during runtime.As a workaround I use wrappers like:
Is this the way to go or a horrible example of bad code? Is async support planned for the dispatcher?
Thank you.
The text was updated successfully, but these errors were encountered: