-
Notifications
You must be signed in to change notification settings - Fork 56
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
Any way to use rpc client in sync app? #147
Comments
aiozmq isn't intended for use in synchronous apps, but it should be possible to make async functions blocking by wrapping them in e.g. |
I just meen if there any sync client uses the same messages format? I need to connect to rpc server on aiozmq.rpc from django app. So I need to choose - use aiozmq.rpc or use other package with ready sync clients. |
@akhilman Thanks, looks nice, but I've created a more simple version already, containing only client in one file. Just rewrite async version without async. May be this will be usefull for somebody else. |
@derfenix thank you. I did my own non asyncio client using your code. futures = [rpc.method_one(), rpc.method_two()]
result_one, result_two = [fut.result() for fut in futures] |
@akhilman Hello, thank you very much for the code example. Would you have an up to date version on hand or the will to actually publish this as a package, so we could maintain it ? Thank you ! |
Is there any way to make sync client to communicate aiozmq.rpc server? I meen any solution ready to use.
The text was updated successfully, but these errors were encountered: