Allow multiple overflown responses in single poll

refactor(core): Allow multiple overflown responses in single poll (#9433)
Allow multiple overflown responses in single pollrefactorallow multiple overflown responses single poll

Committed by inteon

commit message
refactor(core): Allow multiple overflown responses in single poll (#9433)

This commit rewrites "JsRuntime::poll" function to fix a corner case that
might caused "overflown_response" to be overwritten by other overflown response.
 
The logic has been changed to allow returning multiple overflown response
alongside responses from shared queue.

Editor assessment

The subject states the corrected capability exactly: multiple overflown responses can be returned in a single poll. The body explains the defect concretely: one overflown response could be overwritten by another, and the poll logic was rewritten to return them alongside queue responses. That is genuine mechanism teaching. Type refactor is defensible for an internal rewrite fixing a corner case; scope core is accurate. No footers beyond the PR number. A strong explanatory message.

Browse categories

More refactor examples · Back to search