Commit 4f8fe40
committed
refactor(engine): use get_runtime instead of creating new Runtime
Replace manual Runtime creation with get_runtime from pyo3_async_runtimes
to properly integrate with the existing async runtime in Python context.
This removes the dependency on tokio::runtime::Runtime and simplifies
the async execution setup.
BREAKING CHANGE: The engine now relies on the existing Python async
runtime instead of creating its own Tokio runtime.1 parent d51c85e commit 4f8fe40
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 144 | + | |
148 | 145 | | |
149 | 146 | | |
150 | 147 | | |
| |||
0 commit comments