Repository navigation
Commit 231713f
committed
Resolve a finished event's future before starting the next queued one
The next queued handler for a token starts eagerly on Python 3.12+, and could
supersede the run that just finished while its future was still unresolved and
its task already forgotten, cancelling a completed run.
Claude-Session: https://claude.ai/code/session_01LwJUCU8RtEco15mQvkxdQb1 parent 20cc4b6 commit 231713f
2 files changed
Lines changed: 50 additions & 2 deletions
File tree
- packages/reflex-base/src/reflex_base/event/processor
- tests/units/reflex_base/event/processor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
981 | 987 | | |
982 | 988 | | |
983 | 989 | | |
| |||
986 | 992 | | |
987 | 993 | | |
988 | 994 | | |
989 | | - | |
990 | | - | |
| 995 | + | |
991 | 996 | | |
992 | 997 | | |
993 | 998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1568 | 1568 | | |
1569 | 1569 | | |
1570 | 1570 | | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
1571 | 1614 | | |
1572 | 1615 | | |
1573 | 1616 | | |
| |||
0 commit comments