Back to Content

USBDevice: reset() method

files/en-us/web/api/usbdevice/reset/index.md

latest469 B
Original Source

{{APIRef("WebUSB API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers}}

The reset() method of the {{domxref("USBDevice")}} interface returns a {{jsxref("promise")}} that resolves when the device is reset and all app operations canceled and their promises rejected.

Syntax

js-nolint
reset()

Parameters

None.

Return value

A {{jsxref("promise")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}