Interface Disposable

Disposable is returned from various methods to allow undoing the corresponding action. For example, page.addInitScript(script[, arg]) returns a Disposable that can be used to remove the init script.

interface Disposable {
    [asyncDispose](): Promise<void>;
    dispose(): Promise<void>;
}

Methods

  • Returns Promise<void>