For s2idle, we need a reliable way to force the scheduler into an idle loop.
This is a bit heavy-handed and not necessarily the right approach - revision opened mostly so @olce can have a look :) Also this would need to be done with the old scheduler if we go ahead with this design.
The small change at line 1502 is because my language server is complaining about it being a misleading statement.