Commit f4ce818
committed
fix(examples): make async_call.py main synchronous to avoid loop conflict
Updated examples/async_call.py to use a synchronous main entry point. This prevents a RuntimeError caused by prompt-toolkit attempting to start its own asyncio loop while one was already running in the same thread. The example's core functionality of bridging sync and async code remains intact through its use of a background thread for asynchronous tasks.1 parent 9dbb7fa commit f4ce818
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
0 commit comments