It may be possible to simplify the code of submit loop to make it e.g. easier to read
Marking as low prio
scratch PR here: #1010
@mtsitrin had some ideas
NOTE: any solution must provably work.
The existing solution already works, so maybe we just don't fix what's not broken.