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

docs: Add timeout parameter for get_message example #3129

Merged
merged 1 commit into from
Feb 5, 2024

Commits on Jan 30, 2024

  1. docs: Add timeout parameter for get_message example

    The `get_message()` method in asyncio PubSub has a `timeout` argument that defaults to 0.0, causing it to immediately return. This can cause high CPU usage with the given code example and should not be recommended. By setting `timeout=None`, it works with much more efficient resource usage.
    hongqn committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    97e249a View commit details
    Browse the repository at this point in the history