Skip to content
Commit Detail

Commit c6044de

Author
Alex Robinson <arobinson@cloudflare.com> 2025-03-04 06:23:46 +0000
Parents
41650b9
Tree
41172d6
Fix new queue waitUntil drain() logic

I thought that deferring the drain() in all cases could potentially be
useful (e.g. what if an exception gets throw from somewhere in this
method without getting caugh?), but that was dumb. This change (A) moves
it to only the code path where we aren't already calling finishScheduled
(which waits on waitUntilTasks), and (B) properly attaches references to
the necessary state that can be accessed from JS.

Files changed

1 file changed~1 modified