bool HTMLParserScheduler::yieldIfNeeded(const SpeculationsPumpSession& session, bool startingScript) { if (shouldYield(session, startingScript)) { scheduleForResume(); return true; } return false; }
bool PlanYieldPolicy::shouldYieldOrInterrupt() { if (_policy == PlanExecutor::INTERRUPT_ONLY) { return _elapsedTracker.intervalHasElapsed(); } return shouldYield(); }