Skip to content
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

Asyncio examples must be updated #1991

Closed
1 task done
FabriceSalvaire opened this issue May 22, 2024 · 0 comments · Fixed by #2017
Closed
1 task done

Asyncio examples must be updated #1991

FabriceSalvaire opened this issue May 22, 2024 · 0 comments · Fixed by #2017

Comments

@FabriceSalvaire
Copy link

This is a pyzmq bug

  • This is a pyzmq-specific bug, not an issue of zmq socket behavior. Don't worry if you're not sure! We'll figure it out together.

What pyzmq version?

git

What libzmq version?

...

Python version (and how it was installed)

python 3.12

OS

any

What happened?

Asyncio example examples/asyncio/coroutines.py must be updated.

async def main() -> None:
    tasks = [
        asyncio.create_task(ping()),
        asyncio.create_task(receiver()),
        asyncio.create_task(sender()),
    ]
    done, pending = await asyncio.wait(tasks)

asyncio.run(main())

Code to reproduce bug

No response

Traceback, if applicable

No response

More info

No response

@FabriceSalvaire FabriceSalvaire changed the title BUG: Asyncio examples must be updated May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant