Skip to main content
Go to Latest
interface Protocol.Emulation.SetVirtualTimePolicyRequest
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { SetVirtualTimePolicyRequest } = Protocol.Emulation;

Properties

optional
budget: number

If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.

optional
maxVirtualTimeTaskStarvationCount: integer

If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.

optional
initialVirtualTime: Network.TimeSinceEpoch

If set, base::Time::Now will be overridden to initially return this value.