ait: update python token streamin async patterns#3269
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can scan for known vulnerabilities in your dependencies using OSV Scanner.OSV Scanner will automatically detect and report security vulnerabilities in your project's dependencies. No additional configuration is required. |
f9e5541 to
7f44e1a
Compare
7f44e1a to
5ae194e
Compare
Fixes bugs with asyncio/coroutine usage in python examples in the AIT docs where coroutines were created but never actually started. this meant that in some cases coroutines were created and then all executed at once using
asyncio.gather, and in some cases coroutines weren't started at all. the most common way to create a coroutine and start it immediately is by wrapping the coroutine in a call toasyncio.create_task, so this PR updates all AIT python examples to do that.I've tested the new examples with standalone python scripts and verified that they work correctly.
AIT-550