Commit 1bf6e06
committed
fix: schedule unawaited coroutine in send_to_parent with ensure_future
When the child machine runs inside the parent's async event loop,
send_to_parent returns an unawaited coroutine from AsyncEngine's
processing_loop. Use asyncio.ensure_future to schedule it as a task
on the running loop instead of dropping it.1 parent 53b2c06 commit 1bf6e06
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
225 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
226 | 230 | | |
227 | 231 | | |
228 | 232 | | |
| |||
0 commit comments