Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.d.ts";
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.