class Playwright::Download

def cancel

Upon successful cancellations, `download.failure()` would resolve to `'canceled'`.
Cancels a download. Will not fail if the download is already finished or canceled.
def cancel
  wrap_impl(@impl.cancel)
end