Function contextSwitchingRange

"Play nice" input range filter

auto auto contextSwitchingRange(R) (
  R range
)
if (isInputRange!R);

Injecting this into an input range processing chain will make sure that an occasional context switch happens during long processing.

Each call to popFront may result in a context switch