Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add timeout parameter for get_message example (#3129)
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.
- Loading branch information