method WatchSession.abort
WatchSession.abort(): Promise<void>

Cuts the current run short: the browser drops the rest of its queue and the run ends where it is, with aborted: true on its result.

Resolves once the interrupted run has settled, so await session.abort() leaves the session idle and ready for the next verb. Aborting while nothing is running is a no-op.

Return Type

Promise<void>

Usage

import { type WatchSession } from "lib/api/watch.ts";