Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sinco/deps.ts>Protocol.Emulation.VirtualTimePolicy

Browser Automation and Testing Tool for Deno, written in full TypeScript
Latest
type alias Protocol.Emulation.VirtualTimePolicy
import { type Protocol } from "https://deno.land/x/sinco@v4.1.0/deps.ts";
const { VirtualTimePolicy } = Protocol.Emulation;

advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.

definition: ("advance" | "pause" | "pauseIfNetworkFetchesPending")