Commit e3a84f2
committed
Fix memory leak in AWAIT_ON_READY
The original implementation used _finally(), which created multiple
intermediate promise objects. These weren't settled until the event
loop stopped, creating a memory leak and significant delay on stop.
Simplified AWAIT_ON_READY to directly register callbacks without
intermediate objects, eliminating the leak while maintaining correct
functionality. This will also be quicker.
Fixes #22201 parent f9b7f72 commit e3a84f2
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments